changeset 15351:6deee3a18ba8

(sys_kill): Don't try to terminate a DOS process.
author Richard M. Stallman <rms@gnu.org>
date Fri, 07 Jun 1996 17:26:51 +0000
parents a8bd6f986389
children e648211d5bac
files src/w32proc.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32proc.c	Fri Jun 07 15:06:04 1996 +0000
+++ b/src/w32proc.c	Fri Jun 07 17:26:51 1996 +0000
@@ -1055,9 +1055,11 @@
   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));