aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/nohup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/nohup.c b/coreutils/nohup.c
index ea1c4c55a..50f54cca6 100644
--- a/coreutils/nohup.c
+++ b/coreutils/nohup.c
@@ -10,6 +10,7 @@
10 */ 10 */
11 11
12#include <fcntl.h> 12#include <fcntl.h>
13#include <signal.h>
13#include <unistd.h> 14#include <unistd.h>
14#include "busybox.h" 15#include "busybox.h"
15 16
@@ -44,8 +45,8 @@ int nohup_main(int argc, char *argv[])
44 temp = isatty(2); 45 temp = isatty(2);
45 if (temp) fdprintf(2,"Writing to %s\n", home ? home : nohupout); 46 if (temp) fdprintf(2,"Writing to %s\n", home ? home : nohupout);
46 dup2(temp ? 1 : nullfd, 2); 47 dup2(temp ? 1 : nullfd, 2);
47
48 close(nullfd); 48 close(nullfd);
49 signal (SIGHUP, SIG_IGN);
49 50
50 // Exec our new program. 51 // Exec our new program.
51 52