aboutsummaryrefslogtreecommitdiff
path: root/butl/process
diff options
context:
space:
mode:
Diffstat (limited to 'butl/process')
-rw-r--r--butl/process6
1 files changed, 6 insertions, 0 deletions
diff --git a/butl/process b/butl/process
index bbd0162..6077ad3 100644
--- a/butl/process
+++ b/butl/process
@@ -75,6 +75,12 @@ namespace butl
bool
wait ();
+ // Return true if the process has already terminated in which case
+ // the argument is set to the result of wait().
+ //
+ bool
+ try_wait (bool&);
+
~process () {if (id != 0) wait ();}
// Move constructible-only type.