Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux32/common ignore signal 64 for now (go uses it)
details: https://anonhg.NetBSD.org/src/rev/672afd388186
branches: trunk
changeset: 828861:672afd388186
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 07 21:16:00 2018 +0000
description:
ignore signal 64 for now (go uses it)
XXX: pullup-8
diffstat:
sys/compat/linux32/common/linux32_signal.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r b42fd9a541fc -r 672afd388186 sys/compat/linux32/common/linux32_signal.c
--- a/sys/compat/linux32/common/linux32_signal.c Sun Jan 07 21:14:38 2018 +0000
+++ b/sys/compat/linux32/common/linux32_signal.c Sun Jan 07 21:16:00 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_signal.c,v 1.18 2015/03/08 17:10:44 christos Exp $ */
+/* $NetBSD: linux32_signal.c,v 1.19 2018/01/07 21:16:00 christos Exp $ */
/*-
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_signal.c,v 1.18 2015/03/08 17:10:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_signal.c,v 1.19 2018/01/07 21:16:00 christos Exp $");
#include <sys/param.h>
#include <sys/ucred.h>
@@ -299,6 +299,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 >= LINUX32__NSIG) {
DPRINTF(("rt_sigaction: Bad signal number %d %d\n",
sig, LINUX32__NSIG));
Home |
Main Index |
Thread Index |
Old Index