summaryrefslogtreecommitdiff
path: root/devel/linuxthreads/files/lclone.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/linuxthreads/files/lclone.c')
-rw-r--r--devel/linuxthreads/files/lclone.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/devel/linuxthreads/files/lclone.c b/devel/linuxthreads/files/lclone.c
index 9db77024c045..054f9923a5a4 100644
--- a/devel/linuxthreads/files/lclone.c
+++ b/devel/linuxthreads/files/lclone.c
@@ -48,10 +48,10 @@ extern int __clone __P ((int (*__fn) (void *), void *__child_stack,
/* We don't have qn equivalent to CLONE_PID yet */
if (__flags & CLONE_PID)
- return (EINVAL);
+ return (-1);
if (__child_stack == (void *)0)
- return (EINVAL);
+ return (-1);
/* RFTHREAD probably not necessary here, but it shouldn't hurt either */
bsd_flags = RFPROC | RFTHREAD;
@@ -72,11 +72,11 @@ extern int __clone __P ((int (*__fn) (void *), void *__child_stack,
* to do anything special in this case.
*/
break;
- case SIGUSR1:
+ case SIGUSR2:
bsd_flags |= RFLINUXTHPN;
break;
default:
- return (EINVAL);
+ return (-1);
}
if (__flags & CLONE_VM)