]> code.delx.au - gnu-emacs/commitdiff
(Fprocess_send_eof): Abort if fail to open null device.
authorRichard M. Stallman <rms@gnu.org>
Wed, 12 Apr 2006 15:01:37 +0000 (15:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 12 Apr 2006 15:01:37 +0000 (15:01 +0000)
src/process.c

index 29c93052369c49fab11bc70ee1fddde974d2b327..a17ef0e0915e9c35051ed9beb3fce794504119b3 100644 (file)
@@ -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])