Use waitpid() instead of wait() to avoid returning early from another child
authorguenther <guenther@openbsd.org>
Fri, 23 Oct 2015 04:45:32 +0000 (04:45 +0000)
committerguenther <guenther@openbsd.org>
Fri, 23 Oct 2015 04:45:32 +0000 (04:45 +0000)
commit5b6c92c3f1e5352dc287169ed8d7b85ed343b3da
treebc75bd42754d8abf0a71e3db9a042ace54fb53b5
parent203d5f9871fd0623e48b2a38275a9bec8a53eaac
Use waitpid() instead of wait() to avoid returning early from another child
exiting, and loop the waitpid() on EINTR

ok deraadt@ millert@
lib/libc/net/rcmdsh.c