Menu

#81 Don't create zombies

3.4.0
closed
None
8
2016-01-22
2015-05-21
No

Prevent the proliferation of ION zombie processes: revise the Unix implementation of sm_TaskSpawn to do a sort of double-forking that forces the child process to be re-parented to init, which periodically reaps zombies.

signal(SIGCHLD, SIG_IGN); // <-- ignore child fate, don't let it become zombie
pid=fork();
if (pid==0) {
exit(0); // <--- zombie should NOT be created here
} else {
// some parent code ...
}

Discussion

  • Scott Burleigh

    Scott Burleigh - 2015-07-04

    Addressed by feature branch bug-0081-zombie-suppression.

     
  • Scott Burleigh

    Scott Burleigh - 2015-07-04
    • status: accepted --> pending
     
  • Scott Burleigh

    Scott Burleigh - 2016-01-22
    • status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel