diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 2 |
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. */) | |||
| 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); |