close stdin as first attempt to terminate process cleanly.
This commit is contained in:
parent
5a3a8fc8f2
commit
f31c84a742
@ -297,6 +297,9 @@ void
|
||||
SystemExec::terminate ()
|
||||
{
|
||||
::pthread_mutex_lock(&write_lock);
|
||||
|
||||
close_stdin();
|
||||
|
||||
if (pid) {
|
||||
/* terminate */
|
||||
EnumWindows(my_terminateApp, (LPARAM)pid->dwProcessId);
|
||||
|
Loading…
Reference in New Issue
Block a user