Fix a recent regression regarding valid signals.

Submitted by:	rdivacky
This commit is contained in:
netchild 2006-10-20 10:09:40 +00:00
parent a3f4000fda
commit 357a456178

View File

@ -365,7 +365,7 @@ linux_clone(struct thread *td, struct linux_clone_args *args)
#endif
exit_signal = args->flags & 0x000000ff;
if (!LINUX_SIG_VALID(exit_signal))
if (!LINUX_SIG_VALID(exit_signal) && exit_signal != 0)
return (EINVAL);
if (exit_signal <= LINUX_SIGTBLSZ)