Is there any way I can separate the stacks of the context I get from getcontext()? Such that it is exact copy of parent with a different stack. So that when I use setcontext() or swapcontext() it would essentially work like a fork system call?
I want to be able to use it even after the calling function returns.