gotta read partial read though

master
Daniel Kolesa 2017-05-28 16:31:26 +02:00
parent 8dad7ac73a
commit f605ea59bf
1 changed files with 2 additions and 0 deletions

View File

@ -307,6 +307,8 @@ OSTD_EXPORT int subprocess::close() {
reset();
if (r < 0) {
return retc;
} else if (r != sizeof(int)) {
throw subprocess_error{"could not read from pipe"};
} else if (r == sizeof(int)) {
auto ec = std::system_category().default_error_condition(eno);
auto app = appender<std::string>();