Loop the waitpid() on EINTR, and save and restore the disposition of
authorguenther <guenther@openbsd.org>
Fri, 23 Oct 2015 04:44:41 +0000 (04:44 +0000)
committerguenther <guenther@openbsd.org>
Fri, 23 Oct 2015 04:44:41 +0000 (04:44 +0000)
commit203d5f9871fd0623e48b2a38275a9bec8a53eaac
treed362c53364e54c2c82a8b6420a368a6406c2ae1a
parent5aed4d28d43eadb2b7771720ac4d094bec87d515
Loop the waitpid() on EINTR, and save and restore the disposition of
SIGINT and SIGQUIT with sigaction() instead of signal() so that all bits
are preserved.

ok deraadt@ millert@
lib/libc/stdlib/system.c