From: Richard M. Stallman Date: Wed, 12 Apr 2006 15:01:37 +0000 (+0000) Subject: (Fprocess_send_eof): Abort if fail to open null device. X-Git-Tag: emacs-pretest-22.0.90~3178 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=27448380dcc54c36fc2adbdeb5f4a6a52fde73e8;p=emacs.git (Fprocess_send_eof): Abort if fail to open null device. --- 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. */) 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])