summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-04-30 21:15:35 +0200
committerRobin Gareus <robin@gareus.org>2015-04-30 21:15:35 +0200
commit2b294f0b43167104371705fc2092b54448b92b5f (patch)
tree1a6a61c7ca567c7f3431f888d9648deeb641ee3c
parent6366d213990bdfaef40e75bf8115a41132ed8281 (diff)
add a sanity check
-rw-r--r--libs/pbd/system_exec.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/pbd/system_exec.cc b/libs/pbd/system_exec.cc
index 60e73badfc..721db98a7e 100644
--- a/libs/pbd/system_exec.cc
+++ b/libs/pbd/system_exec.cc
@@ -671,6 +671,7 @@ SystemExec::terminate ()
wait();
if (thread_active) pthread_join(thread_id_tt, NULL);
thread_active = false;
+ assert(pid == 0);
::pthread_mutex_unlock(&write_lock);
}