From: Richard M. Stallman Date: Fri, 7 Jun 1996 17:26:51 +0000 (+0000) Subject: (sys_kill): Don't try to terminate a DOS process. X-Git-Tag: emacs-19.34~511 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8eae7766a413119524bd89cbab761478245e0c1d;p=emacs.git (sys_kill): Don't try to terminate a DOS process. --- 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));