Hi!
my situation is as follows: I have a process A with parent S (like in "shell"). Process A spawns a child B.
Is it possible for process A to re-parent process B to its own parent (i.e. process S), as if S had been the spawning process?
A possible solution (in the C programming language) does not need to be portable, FreeBSD-isms are welcome!
Best,
Holger
my situation is as follows: I have a process A with parent S (like in "shell"). Process A spawns a child B.
Is it possible for process A to re-parent process B to its own parent (i.e. process S), as if S had been the spawning process?
A possible solution (in the C programming language) does not need to be portable, FreeBSD-isms are welcome!
Best,
Holger