Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Ignore signal 64 for now (go uses it)
details: https://anonhg.NetBSD.org/src/rev/f2a67ce54a8b
branches: trunk
changeset: 358559:f2a67ce54a8b
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 07 21:14:38 2018 +0000
description:
Ignore signal 64 for now (go uses it)
XXX: pullup-8
diffstat:
sys/compat/linux/common/linux_sigaction.c | 13 +++++++++++--
sys/compat/linux/common/linux_signal.c | 13 +++++++++++--
2 files changed, 22 insertions(+), 4 deletions(-)
diffs (68 lines):
diff -r c77332b20e5d -r f2a67ce54a8b sys/compat/linux/common/linux_sigaction.c
--- a/sys/compat/linux/common/linux_sigaction.c Sun Jan 07 20:59:24 2018 +0000
+++ b/sys/compat/linux/common/linux_sigaction.c Sun Jan 07 21:14:38 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sigaction.c,v 1.34 2008/10/17 20:21:34 njoly Exp $ */
+/* $NetBSD: linux_sigaction.c,v 1.35 2018/01/07 21:14:38 christos Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sigaction.c,v 1.34 2008/10/17 20:21:34 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sigaction.c,v 1.35 2018/01/07 21:14:38 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -84,6 +84,15 @@
linux_old_to_native_sigaction(&nbsa, &nlsa);
}
sig = SCARG(uap, signum);
+ /*
+ * XXX: Linux has 33 realtime signals, the go binary wants to
+ * reset all of them; nothing else uses the last RT signal, so for
+ * now ignore it.
+ */
+ if (sig == LINUX__NSIG) {
+ uprintf("%s: setting signal %d ignored\n", __func__, sig);
+ sig--; /* back to 63 which is ignored */
+ }
if (sig < 0 || sig >= LINUX__NSIG)
return (EINVAL);
if (sig > 0 && !linux_to_native_signo[sig]) {
diff -r c77332b20e5d -r f2a67ce54a8b sys/compat/linux/common/linux_signal.c
--- a/sys/compat/linux/common/linux_signal.c Sun Jan 07 20:59:24 2018 +0000
+++ b/sys/compat/linux/common/linux_signal.c Sun Jan 07 21:14:38 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_signal.c,v 1.79 2017/02/20 16:30:41 rin Exp $ */
+/* $NetBSD: linux_signal.c,v 1.80 2018/01/07 21:14:38 christos Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_signal.c,v 1.79 2017/02/20 16:30:41 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_signal.c,v 1.80 2018/01/07 21:14:38 christos Exp $");
#define COMPAT_LINUX 1
@@ -346,6 +346,15 @@
}
sig = SCARG(uap, signum);
+ /*
+ * XXX: Linux has 33 realtime signals, the go binary wants to
+ * reset all of them; nothing else uses the last RT signal, so for
+ * now ignore it.
+ */
+ if (sig == LINUX__NSIG) {
+ uprintf("%s: setting signal %d ignored\n", __func__, sig);
+ sig--; /* back to 63 which is ignored */
+ }
if (sig < 0 || sig >= LINUX__NSIG)
return EINVAL;
if (sig > 0 && !linux_to_native_signo[sig]) {
Home |
Main Index |
Thread Index |
Old Index