close stdin as first attempt to terminate process cleanly.
authorRobin Gareus <robin@gareus.org>
Sun, 20 Apr 2014 21:02:32 +0000 (23:02 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 20 Apr 2014 21:02:32 +0000 (23:02 +0200)
libs/pbd/system_exec.cc

index 98324039a6cf3c9fb6a3d6419c4fdb5c7120572b..0102323505cf651336b2900987ef09e3868fc9f3 100644 (file)
@@ -297,6 +297,9 @@ void
 SystemExec::terminate ()
 {
        ::pthread_mutex_lock(&write_lock);
+
+       close_stdin();
+
        if (pid) {
                /* terminate */
                EnumWindows(my_terminateApp, (LPARAM)pid->dwProcessId);