mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
close stdin as first attempt to terminate process cleanly.
This commit is contained in:
parent
5a3a8fc8f2
commit
f31c84a742
1 changed files with 3 additions and 0 deletions
|
|
@ -297,6 +297,9 @@ void
|
||||||
SystemExec::terminate ()
|
SystemExec::terminate ()
|
||||||
{
|
{
|
||||||
::pthread_mutex_lock(&write_lock);
|
::pthread_mutex_lock(&write_lock);
|
||||||
|
|
||||||
|
close_stdin();
|
||||||
|
|
||||||
if (pid) {
|
if (pid) {
|
||||||
/* terminate */
|
/* terminate */
|
||||||
EnumWindows(my_terminateApp, (LPARAM)pid->dwProcessId);
|
EnumWindows(my_terminateApp, (LPARAM)pid->dwProcessId);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue