Mercurial > emacs
diff src/w32proc.c @ 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 | 5c8e4ef3137c |
| children | 1a917c5d944c |
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));
