fd25f0fe75b5f328c5d10d95dacfbb6c08af25f7
1 #include "WaitForExec.hpp"
9 #include <system_error>
13 WaitForExec::WaitForExec(Poll
&&poll_
)
16 if (pipe2(pipes
, O_CLOEXEC
|O_NONBLOCK
)) {
18 perror("Server::start pipe2()");
19 throw system_error(error
, system_category());
23 WaitForExec::~WaitForExec() {
32 bool WaitForExec::operator()() {
41 return poll(initializer_list
<int>{pipes
[0]});