Answers for "reap zombie process c"

C
0

reap zombie process in c

void delete_zombies(void)
{
    pid_t kidpid;
    int status;

    printf("Inside zombie deleter:  ");
    while ((kidpid = waitpid(-1, &status, WNOHANG)) > 0)
    {
         printf("Child %ld terminated\n", kidpid);
    }
    siglongjmp(env,1);
}
Posted by: Guest on October-04-2020

Code answers related to "reap zombie process c"

Code answers related to "C"

Browse Popular Code Answers by Language