diff options
author | sos <sos@FreeBSD.org> | 1998-12-21 19:21:36 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1998-12-21 19:21:36 +0000 |
commit | 65891f434b5a885eb97696bdf681f8dea6ee9ed7 (patch) | |
tree | 9d4cf5ce1e30c6eb871ef9bd4057a556f6434a73 /sys/i386/linux | |
parent | 7227af22ebcc6bb6fbadc77bf2789107da029e80 (diff) | |
download | FreeBSD-src-65891f434b5a885eb97696bdf681f8dea6ee9ed7.zip FreeBSD-src-65891f434b5a885eb97696bdf681f8dea6ee9ed7.tar.gz |
Kill(pid, 0) normally returns 0 on both FreeBSD and Redhat after having
performed all sorts of sanity checks. The FreeBSD linux emulator returns
EINVAL in such a case.
Allowing signal 0 to be passed to kill will result in compatible behaviour.
PR: 9082
Submitted by: Marcel Moolenaar <marcel@scc.nl>
Diffstat (limited to 'sys/i386/linux')
-rw-r--r-- | sys/i386/linux/linux_signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_signal.c b/sys/i386/linux/linux_signal.c index 481ed7f..1f71bf5 100644 --- a/sys/i386/linux/linux_signal.c +++ b/sys/i386/linux/linux_signal.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_signal.c,v 1.12 1998/08/15 22:29:43 bde Exp $ + * $Id: linux_signal.c,v 1.13 1998/10/11 04:54:16 jdp Exp $ */ #include <sys/param.h> @@ -310,7 +310,7 @@ linux_kill(struct proc *p, struct linux_kill_args *args) printf("Linux-emul(%d): kill(%d, %d)\n", p->p_pid, args->pid, args->signum); #endif - if (args->signum <= 0 || args->signum >= LINUX_NSIG) + if (args->signum < 0 || args->signum >= LINUX_NSIG) return EINVAL; tmp.pid = args->pid; tmp.signum = linux_to_bsd_signal[args->signum]; |