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}