summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authormanu <manu@NetBSD.org>2006-06-26 07:42:00 +0000
committermanu <manu@NetBSD.org>2006-06-26 07:42:00 +0000
commit0a52064ba347ded4a3279dfdb1db1979d0136216 (patch)
tree3bb5a5a75256493e1bf63ff8f1b99295f7a7e556 /sys/compat/linux
parent9dde4120d5a0e82a6d5837710b84673ff2c2cd92 (diff)
Do not implement exit_group() the right way on platforms that do not
define LINUX_NPTL yet, that cause firefox-bin to fail.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/common/linux_sched.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_sched.c b/sys/compat/linux/common/linux_sched.c
index db8ea9af1f2..0e6f718d04c 100644
--- a/sys/compat/linux/common/linux_sched.c
+++ b/sys/compat/linux/common/linux_sched.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sched.c,v 1.31 2006/06/25 16:15:39 manu Exp $ */
+/* $NetBSD: linux_sched.c,v 1.32 2006/06/26 07:42:00 manu Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sched.c,v 1.31 2006/06/25 16:15:39 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sched.c,v 1.32 2006/06/26 07:42:00 manu Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -407,6 +407,7 @@ linux_sys_exit_group(l, v, retval)
struct linux_sys_exit_group_args /* {
syscallarg(int) error_code;
} */ *uap = v;
+#ifdef LINUX_NPTL
struct proc *p = l->l_proc;
struct linux_emuldata *led = p->p_emuldata;
struct linux_emuldata *e;
@@ -475,6 +476,7 @@ linux_sys_exit_group(l, v, retval)
}
}
SCHED_UNLOCK(s);
+#endif /* LINUX_NPTL */
exit1(l, W_EXITCODE(SCARG(uap, error_code), 0));
/* NOTREACHED */