xv6/zombie.c

17 lines
180 B
C
Raw Normal View History

2007-08-08 08:38:55 +00:00
// Create a zombie process.
#include "types.h"
#include "stat.h"
#include "user.h"
int
main(void)
{
int i;
if(fork() > 0)
for(i=0; i<10; i++)
yield();
2007-08-08 08:44:11 +00:00
exit();
2007-08-08 08:38:55 +00:00
}