aboutsummaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread/uthread_fork.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-02 03:42:20 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-02 03:42:20 +0000
commitb1ad8d91550c081b64108ec76e4037fea9799094 (patch)
treed38e51fa6e731891bafc34b212bc8a2c4eb861bf /lib/libc_r/uthread/uthread_fork.c
parent376b0e97f41ec9989602754a5c05a4f012899091 (diff)
downloadsrc-b1ad8d91550c081b64108ec76e4037fea9799094.tar.gz
src-b1ad8d91550c081b64108ec76e4037fea9799094.zip
Cleanup in the child, not the parent.
Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>
Notes
Notes: svn path=/head/; revision=35614
Diffstat (limited to 'lib/libc_r/uthread/uthread_fork.c')
-rw-r--r--lib/libc_r/uthread/uthread_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_fork.c b/lib/libc_r/uthread/uthread_fork.c
index 25d6703545fc..d2b6726aae66 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: */