From eb9db705584547aa7a5229211c21df82cf2822e4 Mon Sep 17 00:00:00 2001 From: Manoj Ampalam Date: Mon, 4 Apr 2016 14:54:54 -0700 Subject: [PATCH] Delete unwanted code in session cleanup --- session.c | 22 ---------------------- 1 file changed, 22 deletions(-) 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); }