summaryrefslogtreecommitdiff
path: root/devel/linuxthreads/files/lclone.c
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>1999-12-24 01:12:08 +0000
committerJason Evans <jasone@FreeBSD.org>1999-12-24 01:12:08 +0000
commit4ebeef489c00193eb551f2de0d59c118a6b62f6d (patch)
treedd828e7aee51118c0f8d0aa5d1f5c48503122653 /devel/linuxthreads/files/lclone.c
parentAdd isilo. (diff)
Update to the most recent release of LinuxThreads, glibc-linuxthreads-2.1.2,
which is rather tightly coupled with GNU libc, unlike the older version of this port. LinuxThreads has added many features since it was integrated with GNU libc, which means that a number of interfaces that were borrowed from libc_r are no longer needed. This updated port required a lot of reworking of the port, so there are likely to be new bugs.
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)