diff --git a/session.c b/session.c index 6cff37c..d44c3c9 100644 --- a/session.c +++ b/session.c @@ -2882,28 +2882,6 @@ session_pty_cleanup2(Session *s) //} kill(s->pid, SIGTERM); - - /* - * Try wait 100 ms until child finished. - */ - - if (WaitForSingleObject(s -> pid, 100) == WAIT_TIMEOUT) - { - /* - * If still not closed, kill 'cmd.exe' process. - */ - - if (TerminateProcess(s -> pid, 1) == TRUE) - { - debug("Process %u terminated.", s -> pid); - } - else - { - debug("ERROR. Cannot terminate %u process.", s -> pid); - } - } - - CloseHandle(s -> pid); }