diff options
| author | manu <manu@NetBSD.org> | 2003-12-03 20:24:51 +0000 |
|---|---|---|
| committer | manu <manu@NetBSD.org> | 2003-12-03 20:24:51 +0000 |
| commit | 18e13eee3536416d116186c481417ff28bc75c10 (patch) | |
| tree | 5e9fbb7ba53cc9f2587adccb21907c43bd336943 /sys/compat/linux/common/linux_exec.c | |
| parent | f3ac37d795837e5867ef1f571aa430b994a2b166 (diff) | |
Add a sigfilter emulation hook. It is used at the beginning of kpsignal2()
so that a specific emulation has the oportunity to filter out some signals.
if sigfilter returns 0, then no signal is sent by kpsignal2().
There is another place where signals can be generated: trapsignal. Since this
function is already an emulation hook, no call to the sigfilter hook was
introduced in trapsignal.
This is needed to emulate the softsignal feature in COMPAT_DARWIN (signals
sent as Mach exception messages)
Diffstat (limited to 'sys/compat/linux/common/linux_exec.c')
| -rw-r--r-- | sys/compat/linux/common/linux_exec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_exec.c b/sys/compat/linux/common/linux_exec.c index 8525d570fb3..01fe757581d 100644 --- a/sys/compat/linux/common/linux_exec.c +++ b/sys/compat/linux/common/linux_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_exec.c,v 1.65 2003/08/24 17:52:43 chs Exp $ */ +/* $NetBSD: linux_exec.c,v 1.66 2003/12/03 20:24:51 manu Exp $ */ /*- * Copyright (c) 1994, 1995, 1998, 2000 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.65 2003/08/24 17:52:43 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.66 2003/12/03 20:24:51 manu Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -127,6 +127,7 @@ const struct emul emul_linux = { linux_syscallnames, linux_sendsig, linux_trapsignal, + NULL, linux_sigcode, linux_esigcode, &emul_linux_object, |
