plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit f928ea857169efbed374171240af4eb7901009de
parent 868600f21eb535bc419875e982c22ada85451bf3
Author: rsc <devnull@localhost>
Date:   Wed, 21 Apr 2004 04:50:23 +0000

yet more

Diffstat:
Asrc/lib9/fork.c | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/lib9/fork.c 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; +}