Mercurial > hg > Members > tobaru > CbC_xv6
view src/usr/zombie.c @ 100:37a0df8b1889
tweak update_context.pl
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 14 Nov 2019 15:10:43 +0900 |
parents | 83c23a36980d |
children |
line wrap: on
line source
// Create a zombie process that // must be reparented at exit. #include "types.h" #include "stat.h" #include "user.h" int main(void) { if(fork() > 0) sleep(5); // Let child exit before parent. exit(); }