Skip to content

Commit eb9db70

Browse files
committed
Delete unwanted code in session cleanup
1 parent 2679669 commit eb9db70

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

session.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2882,28 +2882,6 @@ session_pty_cleanup2(Session *s)
28822882
//}
28832883

28842884
kill(s->pid, SIGTERM);
2885-
2886-
/*
2887-
* Try wait 100 ms until child finished.
2888-
*/
2889-
2890-
if (WaitForSingleObject(s -> pid, 100) == WAIT_TIMEOUT)
2891-
{
2892-
/*
2893-
* If still not closed, kill 'cmd.exe' process.
2894-
*/
2895-
2896-
if (TerminateProcess(s -> pid, 1) == TRUE)
2897-
{
2898-
debug("Process %u terminated.", s -> pid);
2899-
}
2900-
else
2901-
{
2902-
debug("ERROR. Cannot terminate %u process.", s -> pid);
2903-
}
2904-
}
2905-
2906-
CloseHandle(s -> pid);
29072885

29082886
}
29092887

0 commit comments

Comments
 (0)