1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

(Fdaemon_initialized): Initialize nfd.

This commit is contained in:
Chong Yidong 2008-10-29 18:03:03 +00:00
parent 813b0652d6
commit 29dadb541c

View file

@ -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);