diff options
author | jb <jb@FreeBSD.org> | 1998-05-02 03:42:20 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-02 03:42:20 +0000 |
commit | 0bb53ecc6b183cdb39f2bc473181380fa1708970 (patch) | |
tree | 920034ff50b8634e4fccb6848dcfbd8f4107695b /lib | |
parent | cf7f1dd2f454126731354976b009508129c4d6f6 (diff) | |
download | FreeBSD-src-0bb53ecc6b183cdb39f2bc473181380fa1708970.zip FreeBSD-src-0bb53ecc6b183cdb39f2bc473181380fa1708970.tar.gz |
Cleanup in the child, not the parent.
Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc_r/uthread/uthread_fork.c | 4 | ||||
-rw-r--r-- | lib/libkse/thread/thr_fork.c | 4 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_fork.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc_r/uthread/uthread_fork.c b/lib/libc_r/uthread/uthread_fork.c index 25d6703..d2b6726 100644 --- a/lib/libc_r/uthread/uthread_fork.c +++ b/lib/libc_r/uthread/uthread_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: */ diff --git a/lib/libkse/thread/thr_fork.c b/lib/libkse/thread/thr_fork.c index 25d6703..d2b6726 100644 --- a/lib/libkse/thread/thr_fork.c +++ b/lib/libkse/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: */ 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: */ |