fork download
  1. int dead_child_pid;
  2. while((dead_child_pid = waitpid(-1, &status, WNOHANG)) > 0)
  3. {
  4. printf("%d [child] 종료. %d [부모]n", deat_child_pid, getpid());
  5. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty