Commit 8eae7766 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(sys_kill): Don't try to terminate a DOS process.

parent bffcf874
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment