From b1455f33a8a7b6826fcb0d4b3f4849e322755d28 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 30 Apr 2004 02:16:28 +0000 Subject: Little fixes. --- src/lib9/ffork-pthread.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib9/ffork-pthread.c') 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; } -- cgit v1.2.3