From 0bb53ecc6b183cdb39f2bc473181380fa1708970 Mon Sep 17 00:00:00 2001 From: jb Date: Sat, 2 May 1998 03:42:20 +0000 Subject: Cleanup in the child, not the parent. Submitted by: Tor Egge --- lib/libpthread/thread/thr_fork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libpthread') diff --git a/lib/libpthread/thread/thr_fork.c b/lib/libpthread/thread/thr_fork.c index 25d6703..d2b6726 100644 --- a/lib/libpthread/thread/thr_fork.c +++ b/lib/libpthread/thread/thr_fork.c @@ -51,7 +51,7 @@ fork(void) _lock_thread_list(); /* Fork a new process: */ - if ((ret = _thread_sys_fork()) <= 0) { + if ((ret = _thread_sys_fork()) != 0) { /* Parent process or error. Nothing to do here. */ } else { /* Close the pthread kernel pipe: */ @@ -64,7 +64,7 @@ fork(void) /* * Create a pipe that is written to by the signal handler to * prevent signals being missed in calls to - * _select: + * _thread_sys_select: */ if (_thread_sys_pipe(_thread_kern_pipe) != 0) { /* Cannot create pipe, so abort: */ -- cgit v1.1