From 27448380dcc54c36fc2adbdeb5f4a6a52fde73e8 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 12 Apr 2006 15:01:37 +0000 Subject: [PATCH] (Fprocess_send_eof): Abort if fail to open null device. --- src/process.c | 2 ++ 1 file changed, 2 insertions(+) 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]) -- 2.39.2