Date: Sat, 30 Sep 2006 09:36:37 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 106967 for review Message-ID: <200609300936.k8U9abJb039358@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106967 Change 106967 by rdivacky@rdivacky_witten on 2006/09/30 09:36:25 Check the status of the options before messing with it. Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#4 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_misc.c#4 (text+ko) ==== @@ -795,6 +795,12 @@ printf(ARGS(waitpid, "%d, %p, %d"), args->pid, (void *)args->status, args->options); #endif + /* + * this is necessary because the test in kern_wait doesnt + * work because we mess with the options here + */ + if (args->options &~ (WUNTRACED|WNOHANG|WCONTINUED)) + return (EINVAL); options = (args->options & (WNOHANG | WUNTRACED)); /* WLINUXCLONE should be equal to __WCLONE, but we make sure */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609300936.k8U9abJb039358>