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

(Fprocess_send_eof): Abort if fail to open null device.

parent 6bf890d7
......@@ -6234,6 +6234,8 @@ text to PROCESS after you call this function. */)
emacs_close (XINT (XPROCESS (proc)->outfd));
#endif /* not HAVE_SHUTDOWN */
new_outfd = emacs_open (NULL_DEVICE, O_WRONLY, 0);
if (new_outfd < 0)
abort ();
old_outfd = XINT (XPROCESS (proc)->outfd);
if (!proc_encode_coding_system[new_outfd])
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