summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-23 00:28:06 +0000
committerRob Landley <rob@landley.net>2006-05-23 00:28:06 +0000
commitfa6b5e62c25cda78f4453ad3b3086f337e7bc23f (patch)
tree12fcf73c4de8647c130706bc7ef78ce281fa3f61 /coreutils
parenta81cec9192c5cd00f8713fea9af6573cc363344d (diff)
downloadbusybox-w32-fa6b5e62c25cda78f4453ad3b3086f337e7bc23f.tar.gz
busybox-w32-fa6b5e62c25cda78f4453ad3b3086f337e7bc23f.tar.bz2
busybox-w32-fa6b5e62c25cda78f4453ad3b3086f337e7bc23f.zip
It takes _talent_ to implement a version of nohup that does everything except
the actual blocking of HUP.
Diffstat (limited to 'coreutils')
-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