diff options
author | kib <kib@FreeBSD.org> | 2006-11-15 10:01:06 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2006-11-15 10:01:06 +0000 |
commit | 5bee73d962d69192303f1c49c0a617d5fbd7de6a (patch) | |
tree | 545da7e87894ceb6cbe48b1f6e5fc5af8761b62b /sys/compat/linux/linux_misc.c | |
parent | e4467958862a45640eca20ed59032f70cb477d2e (diff) | |
download | FreeBSD-src-5bee73d962d69192303f1c49c0a617d5fbd7de6a.zip FreeBSD-src-5bee73d962d69192303f1c49c0a617d5fbd7de6a.tar.gz |
In rev 1.188 of linux_misc.c the added check for valid options ommited
__WCLONE. This fixes it thus fixing skype/teamspeak to not keep zombies
after exit.
Submitted by: rdivacky
Reported by: Bakul Shah (bakul at bitblocks com)
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 178e357..2ac2f0b 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -802,7 +802,7 @@ linux_waitpid(struct thread *td, struct linux_waitpid_args *args) * this is necessary because the test in kern_wait doesnt * work because we mess with the options here */ - if (args->options &~ (WUNTRACED|WNOHANG|WCONTINUED)) + if (args->options &~ (WUNTRACED|WNOHANG|WCONTINUED|__WCLONE)) return (EINVAL); options = (args->options & (WNOHANG | WUNTRACED)); |