diff options
author | 2014-01-20 21:19:27 +0000 | |
---|---|---|
committer | 2014-01-20 21:19:27 +0000 | |
commit | 712e2ef1d075cfb59b85031fe4aaec60cc1e47a0 (patch) | |
tree | 632f21bb409d9c4fb9be6a0c8ee0bb473f9ec7c7 /sys/compat/linux/linux_sched.c | |
parent | for the SHA256 file, output checksums in base64; ok espie@ (diff) | |
download | wireguard-openbsd-712e2ef1d075cfb59b85031fe4aaec60cc1e47a0.tar.xz wireguard-openbsd-712e2ef1d075cfb59b85031fe4aaec60cc1e47a0.zip |
Threads can't be zombies, only processes, so change zombproc to zombprocess,
make it a list of processes, and change P_NOZOMBIE and P_STOPPED from thread
flags to process flags. Add allprocess list for the code that just wants
to see processes.
ok tedu@
Diffstat (limited to 'sys/compat/linux/linux_sched.c')
-rw-r--r-- | sys/compat/linux/linux_sched.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/compat/linux/linux_sched.c b/sys/compat/linux/linux_sched.c index 599dc9ffc7a..04fb2fec1b8 100644 --- a/sys/compat/linux/linux_sched.c +++ b/sys/compat/linux/linux_sched.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_sched.c,v 1.14 2012/05/25 04:39:40 guenther Exp $ */ +/* $OpenBSD: linux_sched.c,v 1.15 2014/01/20 21:19:28 guenther Exp $ */ /* $NetBSD: linux_sched.c,v 1.6 2000/05/28 05:49:05 thorpej Exp $ */ /*- @@ -110,13 +110,7 @@ linux_sys_clone(struct proc *p, void *v, register_t *retval) LINUX_CLONE_VFORK if ((cflags & (REQUIRED | BANNED)) != REQUIRED) return (EINVAL); - /* - * Linux says that CLONE_THREAD means no signal - * will be sent on exit (even if a non-standard - * signal is requested via CLONE_CSIGNAL), so pass - * FORK_NOZOMBIE too. - */ - flags |= FORK_THREAD | FORK_NOZOMBIE; + flags |= FORK_THREAD; } else { /* * These are only supported with CLONE_THREAD. Arguably, |