Fix waitpid() loop again: do the errno check only if waitpid() returns -1
authorguenther <guenther@openbsd.org>
Fri, 23 Oct 2015 04:52:21 +0000 (04:52 +0000)
committerguenther <guenther@openbsd.org>
Fri, 23 Oct 2015 04:52:21 +0000 (04:52 +0000)
commitb2251c561ddd2e76d7c69c6dc0b22299923fe7c4
tree750eefacf52a4b0009bd482066a2bf397eee3fbf
parent5b6c92c3f1e5352dc287169ed8d7b85ed343b3da
Fix waitpid() loop again: do the errno check only if waitpid() returns -1
and check WIFEXITED() only if it returns != -1.  Delete the logging of
errors other than ECHILD: EFAULT and EINVAL are impossible here.

ok deraadt@ millert@
lib/libc/gen/auth_subr.c