comparison src/emacs.c @ 99226:9065d5721384

(Fdaemon_initialized): Initialize nfd.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 29 Oct 2008 18:03:03 +0000
parents c1511154e8c2
children bf6e1cf74209
comparison
equal deleted inserted replaced
99225:46e24ff038dd 99226:9065d5721384
2465 2465
2466 if (NILP (Vafter_init_time)) 2466 if (NILP (Vafter_init_time))
2467 error ("This function can only be called after loading the init files"); 2467 error ("This function can only be called after loading the init files");
2468 2468
2469 /* Get rid of stdin, stdout and stderr. */ 2469 /* Get rid of stdin, stdout and stderr. */
2470 open ("/dev/null", O_RDWR); 2470 nfd = open ("/dev/null", O_RDWR);
2471 dup2 (nfd, 0); 2471 dup2 (nfd, 0);
2472 dup2 (nfd, 1); 2472 dup2 (nfd, 1);
2473 dup2 (nfd, 2); 2473 dup2 (nfd, 2);
2474 close (nfd); 2474 close (nfd);
2475 2475