From f31c84a74296cac354928b05228a4ada280f040b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 20 Apr 2014 23:02:32 +0200 Subject: [PATCH] close stdin as first attempt to terminate process cleanly. --- libs/pbd/system_exec.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/pbd/system_exec.cc b/libs/pbd/system_exec.cc index 98324039a6..0102323505 100644 --- a/libs/pbd/system_exec.cc +++ b/libs/pbd/system_exec.cc @@ -297,6 +297,9 @@ void SystemExec::terminate () { ::pthread_mutex_lock(&write_lock); + + close_stdin(); + if (pid) { /* terminate */ EnumWindows(my_terminateApp, (LPARAM)pid->dwProcessId);