From dc89d29d65b6f383fbaea9a973c4e7b96723df9d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 Jun 2015 10:10:42 +0200 Subject: Wait for child process in destructor instead of asserting --- butl/process | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1