aboutsummaryrefslogtreecommitdiff
path: root/butl/process
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-28 10:10:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-28 10:10:42 +0200
commitdc89d29d65b6f383fbaea9a973c4e7b96723df9d (patch)
tree245da65213167d66621724592bd4761686ddec51 /butl/process
parent3a098360d223745e667eef3fbe1e80cc6c80dc71 (diff)
Wait for child process in destructor instead of asserting
Diffstat (limited to 'butl/process')
-rw-r--r--butl/process2
1 files changed, 1 insertions, 1 deletions
diff --git a/butl/process b/butl/process
index 1d16285..52aad41 100644
--- a/butl/process
+++ b/butl/process
@@ -48,7 +48,7 @@ namespace butl
bool
wait ();
- ~process () {assert (id == 0);}
+ ~process () {if (id != 0) wait ();}
#ifndef _WIN32
typedef pid_t id_type;