diff options
-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: */ |