2
0
mirror of https://github.com/boostorg/process.git synced 2026-02-01 20:52:12 +00:00

Merge pull request #77 from SimonEbner/develop

Fix leaking pipe
This commit is contained in:
Klemens Morgenstern
2019-03-23 00:01:27 +08:00
committed by GitHub

View File

@@ -282,7 +282,10 @@ class executor
set_error(std::error_code(err, std::system_category()), "Error read pipe");
}
if (count == 0)
{
::close(source);
return ;
}
std::error_code ec(data[0], std::system_category());
std::string msg(data[1], ' ');