diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib9/fork.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib9/fork.c b/src/lib9/fork.c new file mode 100644 index 00000000..99e84dc9 --- /dev/null +++ b/src/lib9/fork.c @@ -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; +} |