summaryrefslogtreecommitdiff
path: root/zombie.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-08 08:38:55 +0000
committerrsc <rsc>2007-08-08 08:38:55 +0000
commit349ee132f0c7060ad04c5667da24d8cb40654be8 (patch)
tree84813d17068b36ecf2169e698020dc9e17c88919 /zombie.c
parenta7d18bb6f081e1520af7eeed4e3a633aafc81124 (diff)
downloadxv6-labs-349ee132f0c7060ad04c5667da24d8cb40654be8.tar.gz
xv6-labs-349ee132f0c7060ad04c5667da24d8cb40654be8.tar.bz2
xv6-labs-349ee132f0c7060ad04c5667da24d8cb40654be8.zip
add zombie program
Diffstat (limited to 'zombie.c')
-rw-r--r--zombie.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/zombie.c b/zombie.c
new file mode 100644
index 0000000..0f3b4a3
--- /dev/null
+++ b/zombie.c
@@ -0,0 +1,12 @@
+// Create a zombie process.
+
+#include "types.h"
+#include "stat.h"
+#include "user.h"
+
+int
+main(void)
+{
+ fork();
+ exit();
+}