From 29dadb541cd6f47ee9313ea305d845309136687c Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 29 Oct 2008 18:03:03 +0000 Subject: [PATCH] (Fdaemon_initialized): Initialize nfd. --- src/emacs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2