12 #include <sys/types.h>
16 #include <boost/system/error_code.hpp>
21 template <
class Process>
30 }
while ((
ret == -1 && errno == EINTR) || (
ret != -1 && !WIFEXITED(
status)));
33 BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR(
"waitpid(2) failed");
38 template <
class Process>
47 }
while ((
ret == -1 && errno == EINTR) || (
ret != -1 && !WIFEXITED(
status)));
50 BOOST_PROCESS_RETURN_LAST_SYSTEM_ERROR(ec);