We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2679669 commit eb9db70Copy full SHA for eb9db70
session.c
@@ -2882,28 +2882,6 @@ session_pty_cleanup2(Session *s)
2882
//}
2883
2884
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);
2907
2908
}
2909
0 commit comments