diff options
author | Robin Gareus <robin@gareus.org> | 2014-04-20 23:02:32 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-04-20 23:02:32 +0200 |
commit | f31c84a74296cac354928b05228a4ada280f040b (patch) | |
tree | 4e5d3883d7f48f094038d515a1dfd1eba55f685a /libs/pbd/system_exec.cc | |
parent | 5a3a8fc8f2f46d43cb705a79f15976bb1ba883e0 (diff) |
close stdin as first attempt to terminate process cleanly.
Diffstat (limited to 'libs/pbd/system_exec.cc')
-rw-r--r-- | libs/pbd/system_exec.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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); |