changeset 69974:2ecef706d823

(Fprocess_send_eof): Abort if fail to open null device.
author Richard M. Stallman <rms@gnu.org>
date Wed, 12 Apr 2006 15:01:37 +0000
parents dc4e5cc51e66
children 101355b37caf
files src/process.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Wed Apr 12 15:00:32 2006 +0000
+++ b/src/process.c	Wed Apr 12 15:01:37 2006 +0000
@@ -6234,6 +6234,8 @@
       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])