summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-10-29 18:03:03 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-10-29 18:03:03 +0000
commit29dadb541cd6f47ee9313ea305d845309136687c (patch)
tree82729b00bd3692ef206f2a6f40a832cdc7f1483a /src/emacs.c
parent813b0652d69a152b5b906fb0b2a55981fe9005dc (diff)
downloademacs-29dadb541cd6f47ee9313ea305d845309136687c.tar.gz
(Fdaemon_initialized): Initialize nfd.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index d707f4f758d..6045d0c9623 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -2467,7 +2467,7 @@ from the parent process and its tty file descriptors. */)
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);