From 2b294f0b43167104371705fc2092b54448b92b5f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 30 Apr 2015 21:15:35 +0200 Subject: add a sanity check --- libs/pbd/system_exec.cc | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3