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 Oops, completely forgot to translate...



details:   https://anonhg.NetBSD.org/src/rev/67d08596f86b
branches:  trunk
changeset: 473032:67d08596f86b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon May 17 19:26:33 1999 +0000

description:
Oops, completely forgot to translate the exit signal in clone(2).

diffstat:

 sys/compat/linux/common/linux_misc.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 6650aeae56a9 -r 67d08596f86b sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c      Mon May 17 17:08:08 1999 +0000
+++ b/sys/compat/linux/common/linux_misc.c      Mon May 17 19:26:33 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_misc.c,v 1.57 1999/05/14 18:44:50 thorpej Exp $  */
+/*     $NetBSD: linux_misc.c,v 1.58 1999/05/17 19:26:33 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -951,6 +951,13 @@
                flags |= FORK_PPWAIT;
 
        sig = SCARG(uap, flags) & LINUX_CLONE_CSIGNAL;
+       if (sig < 0 || sig >= LINUX_NSIG)
+               return (EINVAL);
+       sig = linux_to_native_sig[sig];
+
+       /* XXX Is this the right thing? */
+       if (sig == 0)
+               sig = SIGCHLD;
 
        /*
         * Note that Linux does not provide a portable way of specifying



Home | Main Index | Thread Index | Old Index