diff options
author | rsc <devnull@localhost> | 2004-04-30 02:16:28 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-30 02:16:28 +0000 |
commit | b1455f33a8a7b6826fcb0d4b3f4849e322755d28 (patch) | |
tree | f6e2e927fd33ad4fb6442744f85759fa761b1220 /src/lib9/ffork-pthread.c | |
parent | be36ff68854c86247fdc769c0eaa89eb284b5ca7 (diff) | |
download | plan9port-b1455f33a8a7b6826fcb0d4b3f4849e322755d28.tar.gz plan9port-b1455f33a8a7b6826fcb0d4b3f4849e322755d28.tar.bz2 plan9port-b1455f33a8a7b6826fcb0d4b3f4849e322755d28.zip |
Little fixes.
Diffstat (limited to 'src/lib9/ffork-pthread.c')
-rw-r--r-- | src/lib9/ffork-pthread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib9/ffork-pthread.c b/src/lib9/ffork-pthread.c index ff61ed10..24b987b3 100644 --- a/src/lib9/ffork-pthread.c +++ b/src/lib9/ffork-pthread.c @@ -14,8 +14,11 @@ ffork(int flags, void(*fn)(void*), void *arg) return -1; } + _p9uproc(0); if(pthread_create(&tid, NULL, (void*(*)(void*))fn, arg) < 0) return -1; + if((int)tid == 0) + _p9uproc(0); return (int)tid; } |