13
0

add a sanity check

This commit is contained in:
Robin Gareus 2015-04-30 21:15:35 +02:00
parent 6366d21399
commit 2b294f0b43

View File

@ -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);
}