aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-07 17:26:51 +0000
committerRichard M. Stallman1996-06-07 17:26:51 +0000
commit8eae7766a413119524bd89cbab761478245e0c1d (patch)
treeabd1f66d36580ee472c6218012d0163de06f60fb
parentbffcf8740278b5dc68ff6f755aab08295e45f22c (diff)
downloademacs-8eae7766a413119524bd89cbab761478245e0c1d.tar.gz
emacs-8eae7766a413119524bd89cbab761478245e0c1d.zip
(sys_kill): Don't try to terminate a DOS process.
-rw-r--r--src/w32proc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 62b373e642f..1f8e8353238 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -1055,9 +1055,11 @@ sys_kill (int pid, int sig)
1055 else 1055 else
1056 { 1056 {
1057 /* Kill the process. On Win32 this doesn't kill child processes 1057 /* Kill the process. On Win32 this doesn't kill child processes
1058 so it doesn't work very well for shells which is why it's 1058 so it doesn't work very well for shells which is why it's not
1059 not used in every case. */ 1059 used in every case. Also, don't try to terminate DOS processes
1060 if (!TerminateProcess (proc_hand, 0xff)) 1060 (on Win95), because this will hang Emacs. */
1061 if (!(cp && cp->is_dos_process)
1062 && !TerminateProcess (proc_hand, 0xff))
1061 { 1063 {
1062 DebPrint (("sys_kill.TerminateProcess returned %d " 1064 DebPrint (("sys_kill.TerminateProcess returned %d "
1063 "for pid %lu\n", GetLastError (), pid)); 1065 "for pid %lu\n", GetLastError (), pid));