Module Name: src
Committed By: christos
Date: Sun Jan 7 21:16:00 UTC 2018
Modified Files:
src/sys/compat/linux32/common: linux32_signal.c
Log Message:
ignore signal 64 for now (go uses it)
XXX: pullup-8
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/compat/linux32/common/linux32_signal.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux32/common/linux32_signal.c
diff -u src/sys/compat/linux32/common/linux32_signal.c:1.18 src/sys/compat/linux32/common/linux32_signal.c:1.19
--- src/sys/compat/linux32/common/linux32_signal.c:1.18 Sun Mar 8 13:10:44 2015
+++ src/sys/compat/linux32/common/linux32_signal.c Sun Jan 7 16:16:00 2018
@@ -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 @@ linux32_sys_rt_sigaction(struct lwp *l,
}
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));