# HG changeset patch # User Richard M. Stallman # Date 1144854097 0 # Node ID 2ecef706d8234d4c695a78b72d6ec00eb4c6e70c # Parent dc4e5cc51e66c1099af331f4a32c323d5a6294ad (Fprocess_send_eof): Abort if fail to open null device. diff -r dc4e5cc51e66 -r 2ecef706d823 src/process.c --- 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])