diff --git a/src/posix/process.cc b/src/posix/process.cc index b0b3c92..6aa09a8 100644 --- a/src/posix/process.cc +++ b/src/posix/process.cc @@ -306,7 +306,7 @@ OSTD_EXPORT int subprocess::close() { auto r = read(pd->errno_fd, &eno, sizeof(int)); reset(); if (r < 0) { - throw subprocess_error{"could not read from pipe"}; + return retc; } else if (r == sizeof(int)) { auto ec = std::system_category().default_error_condition(eno); auto app = appender();