/* * cinit * (c) 2005 Nico Schottelius (nico-linux at schottelius.org) * We are called, when a child dies. Remove it. */ #include #include #include "cinit.h" /*********************************************************************** * sig_child * collect the children */ void sig_child(int signal) { do { D_PRINTF("kind entfernen"); signal = waitpid(-1,&signal,WNOHANG); } while( signal > 0); }