diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-28 10:10:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-28 10:10:42 +0200 |
commit | dc89d29d65b6f383fbaea9a973c4e7b96723df9d (patch) | |
tree | 245da65213167d66621724592bd4761686ddec51 /butl/process | |
parent | 3a098360d223745e667eef3fbe1e80cc6c80dc71 (diff) |
Wait for child process in destructor instead of asserting
Diffstat (limited to 'butl/process')
-rw-r--r-- | butl/process | 2 |
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; |