summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-02 03:42:20 +0000
committerjb <jb@FreeBSD.org>1998-05-02 03:42:20 +0000
commit0bb53ecc6b183cdb39f2bc473181380fa1708970 (patch)
tree920034ff50b8634e4fccb6848dcfbd8f4107695b /lib/libpthread
parentcf7f1dd2f454126731354976b009508129c4d6f6 (diff)
downloadFreeBSD-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/libpthread')
-rw-r--r--lib/libpthread/thread/thr_fork.c4
1 files changed, 2 insertions, 2 deletions
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: */
OpenPOWER on IntegriCloud