summaryrefslogtreecommitdiff
path: root/boost/process/system.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/process/system.hpp')
-rw-r--r--boost/process/system.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/boost/process/system.hpp b/boost/process/system.hpp
index 5ed7633233..185edca0d2 100644
--- a/boost/process/system.hpp
+++ b/boost/process/system.hpp
@@ -85,6 +85,8 @@ inline int system_impl(
return -1;
ios.run();
+ if (c.running())
+ c.wait();
return c.exit_code();
}