Mercurial > hg > Members > tobaru > CbC_xv6
comparison src/usr/zombie.c @ 0:83c23a36980d
Init
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 26 May 2017 23:11:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:83c23a36980d |
---|---|
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) | |
10 { | |
11 if(fork() > 0) | |
12 sleep(5); // Let child exit before parent. | |
13 exit(); | |
14 } |