From 9274b870abcebe2605d118a394ab23dd8ce3eef4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 29 Mar 2013 09:48:29 +0100 Subject: [PATCH] vtl: amend 0c2d95b - fix possible race condition when terminating external program --- gtk2_ardour/system_exec.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gtk2_ardour/system_exec.cc b/gtk2_ardour/system_exec.cc index 44fed48c12..00b212710e 100644 --- a/gtk2_ardour/system_exec.cc +++ b/gtk2_ardour/system_exec.cc @@ -306,7 +306,6 @@ SystemExec::output_interposer() ReadStdout(data, bytesRead);/* EMIT SIGNAL */ } Terminated();/* EMIT SIGNAL */ - terminate(); } void @@ -618,7 +617,6 @@ SystemExec::output_interposer() ReadStdout(rv, r);/* EMIT SIGNAL */ } Terminated();/* EMIT SIGNAL */ - terminate(); } void @@ -653,9 +651,6 @@ SystemExec::write_to_stdin(std::string d, size_t len) } if (r != (len-c)) { ::pthread_mutex_unlock(&write_lock); -#if 1 // debug - printf("XXX: child process communication breakdown.\n"); -#endif return c; } break;