close stdin as first attempt to terminate process cleanly.

This commit is contained in:
Robin Gareus 2014-04-20 23:02:32 +02:00
parent 5a3a8fc8f2
commit f31c84a742

View file

@ -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);