aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman2006-04-12 15:01:37 +0000
committerRichard M. Stallman2006-04-12 15:01:37 +0000
commit27448380dcc54c36fc2adbdeb5f4a6a52fde73e8 (patch)
tree8abdfd6e2eb71c6c060e93933f32e02404ba82c3 /src/process.c
parent6bf890d76abf3ab3e19eb730512d0ad82fa45407 (diff)
downloademacs-27448380dcc54c36fc2adbdeb5f4a6a52fde73e8.tar.gz
emacs-27448380dcc54c36fc2adbdeb5f4a6a52fde73e8.zip
(Fprocess_send_eof): Abort if fail to open null device.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 29c93052369..a17ef0e0915 100644
--- a/src/process.c
+++ b/src/process.c
@@ -6234,6 +6234,8 @@ text to PROCESS after you call this function. */)
6234 emacs_close (XINT (XPROCESS (proc)->outfd)); 6234 emacs_close (XINT (XPROCESS (proc)->outfd));
6235#endif /* not HAVE_SHUTDOWN */ 6235#endif /* not HAVE_SHUTDOWN */
6236 new_outfd = emacs_open (NULL_DEVICE, O_WRONLY, 0); 6236 new_outfd = emacs_open (NULL_DEVICE, O_WRONLY, 0);
6237 if (new_outfd < 0)
6238 abort ();
6237 old_outfd = XINT (XPROCESS (proc)->outfd); 6239 old_outfd = XINT (XPROCESS (proc)->outfd);
6238 6240
6239 if (!proc_encode_coding_system[new_outfd]) 6241 if (!proc_encode_coding_system[new_outfd])