zombie.c - #include #include #include #include <stdio.h>...

This preview shows page 1 out of 1 page.

#include <stdio.h>#include <unistd.h>#include <sys/types.h>#include <sys/wait.h>int loop(){int i;for(i=0; i < 20; i++){printf("pid = %d, ppid = %d\n", getpid(), getppid());sleep(1);}return 0;}int main(){int pid, pid1;int c_ret;
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Staff
Tags
int pid, int Loop

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture