tyet more - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit f928ea857169efbed374171240af4eb7901009de
DIR parent 868600f21eb535bc419875e982c22ada85451bf3
HTML Author: rsc <devnull@localhost>
Date: Wed, 21 Apr 2004 04:50:23 +0000
yet more
Diffstat:
A src/lib9/fork.c | 14 ++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)
---
DIR diff --git a/src/lib9/fork.c b/src/lib9/fork.c
t@@ -0,0 +1,14 @@
+#include <u.h>
+#include <libc.h>
+#include "9proc.h"
+#undef fork
+
+int
+p9fork(void)
+{
+ int pid;
+
+ pid = fork();
+ _p9uproc(0);
+ return pid;
+}