From 8eae7766a413119524bd89cbab761478245e0c1d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 7 Jun 1996 17:26:51 +0000 Subject: [PATCH] (sys_kill): Don't try to terminate a DOS process. --- src/w32proc.c | 8 +++++--- 1 file 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) else { /* Kill the process. On Win32 this doesn't kill child processes - so it doesn't work very well for shells which is why it's - not used in every case. */ - if (!TerminateProcess (proc_hand, 0xff)) + so it doesn't work very well for shells which is why it's not + used in every case. Also, don't try to terminate DOS processes + (on Win95), because this will hang Emacs. */ + if (!(cp && cp->is_dos_process) + && !TerminateProcess (proc_hand, 0xff)) { DebPrint (("sys_kill.TerminateProcess returned %d " "for pid %lu\n", GetLastError (), pid)); -- 2.39.2