changeset 99226:9065d5721384

(Fdaemon_initialized): Initialize nfd.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 29 Oct 2008 18:03:03 +0000
parents 46e24ff038dd
children d0781e01ee9c
files src/emacs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Wed Oct 29 18:02:53 2008 +0000
+++ b/src/emacs.c	Wed Oct 29 18:03:03 2008 +0000
@@ -2467,7 +2467,7 @@
     error ("This function can only be called after loading the init files");
 
   /* Get rid of stdin, stdout and stderr.  */
-  open ("/dev/null", O_RDWR);
+  nfd = open ("/dev/null", O_RDWR);
   dup2 (nfd, 0);
   dup2 (nfd, 1);
   dup2 (nfd, 2);