diff options
Diffstat (limited to 'lib/libpthread/thread/thr_fork.c')
-rw-r--r-- | lib/libpthread/thread/thr_fork.c | 4 |
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: */ |