repo.or.cz
/
mascara-docs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* more re-work
[mascara-docs.git]
/
i386
/
junos
/
MIT
/
src.xv6
/
zombie.c
blob
077c02c886a8df2697f19e3cb05c92b990a2d30e
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
}