reap zombie process in c

Solutions on MaxInterview for reap zombie process in c by the best coders in the world

showing results for - "reap zombie process in c"
Maylis
05 Nov 2017
1void delete_zombies(void)
2{
3    pid_t kidpid;
4    int status;
5
6    printf("Inside zombie deleter:  ");
7    while ((kidpid = waitpid(-1, &status, WNOHANG)) > 0)
8    {
9         printf("Child %ld terminated\n", kidpid);
10    }
11    siglongjmp(env,1);
12}
similar questions
queries leading to this page
reap zombie process in c