13
0

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 ()
{
::pthread_mutex_lock(&write_lock);
close_stdin();
if (pid) {
/* terminate */
EnumWindows(my_terminateApp, (LPARAM)pid->dwProcessId);