root/zombie.c

/* [previous][next][first][last][top][bottom][index][help]  */

DEFINITIONS

This source file includes following definitions.
  1. main

   1 // Create a zombie process that
   2 // must be reparented at exit.
   3 
   4 #include "types.h"
   5 #include "stat.h"
   6 #include "user.h"
   7 
   8 int
   9 main(void)
     /* [previous][next][first][last][top][bottom][index][help]  */
  10 {
  11   if(fork() > 0)
  12     sleep(5);  // Let child exit before parent.
  13   exit();
  14 }

/* [previous][next][first][last][top][bottom][index][help]  */