in reply to Broken getppid() on Darwin/OSX
Where the child reports a ppid of 1, the launching parent has already exited. The init process, ppid == 1, has inherited the child.
(Added) In cases where the child does not get shunted to init, you may be leaving zombies. Run ps and look for processes in Z state. Call wait in the parent to solve both problems.
After Compline,
Zaxo
|
|---|