2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-19 04:22:15 +00:00

added check for ECHILD

Fixes #496
This commit is contained in:
Klemens Morgenstern
2025-06-21 00:25:13 +08:00
parent a7e4fe99c1
commit f9c13ff581

View File

@@ -355,8 +355,7 @@ private:
}
};
net::post(handle.get_executor(),
completer{static_cast<int>(res), std::move(self)});
net::post(handle.get_executor(), completer{static_cast<int>(res), std::move(self)});
}
else
handle.async_wait(std::move(self));
@@ -371,7 +370,10 @@ private:
{
if (!ec)
res = code;
std::move(self).complete(ec, evaluate_exit_code(code));
else if (ec == boost::system::errc::no_child_process)
std::move(self).complete({}, evaluate_exit_code(res));
else
std::move(self).complete(ec, evaluate_exit_code(code));
}
}
};