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)
This commit is contained in:
kib 2006-11-15 10:01:06 +00:00
parent e446795886
commit 5bee73d962

View File

@ -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));