diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-24 17:58:00 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-24 17:58:00 +0000 |
commit | 103e705ffab8dab5fd99e625b88d610979e6f13e (patch) | |
tree | 58b6962b20b02637a9723dbee6a6cae2851c77c8 | |
parent | 0fd855f16c9d3e59da8c5527a71c6cd6d6858ebb (diff) | |
download | busybox-w32-103e705ffab8dab5fd99e625b88d610979e6f13e.tar.gz busybox-w32-103e705ffab8dab5fd99e625b88d610979e6f13e.tar.bz2 busybox-w32-103e705ffab8dab5fd99e625b88d610979e6f13e.zip |
Two more issues pointed out by Bernhard.
git-svn-id: svn://busybox.net/trunk/busybox@15164 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | coreutils/nohup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/coreutils/nohup.c b/coreutils/nohup.c index 50f54cca6..9d7a0f559 100644 --- a/coreutils/nohup.c +++ b/coreutils/nohup.c | |||
@@ -2,7 +2,7 @@ | |||
2 | /* nohup - invoke a utility immune to hangups. | 2 | /* nohup - invoke a utility immune to hangups. |
3 | * | 3 | * |
4 | * Busybox version based on nohup specification at | 4 | * Busybox version based on nohup specification at |
5 | * http://www.opengroup.org/onlinepubs/007904975/utilities/sed.html | 5 | * http://www.opengroup.org/onlinepubs/007904975/utilities/nohup.html |
6 | * | 6 | * |
7 | * Copyright 2006 Rob Landley <rob@landley.net> | 7 | * Copyright 2006 Rob Landley <rob@landley.net> |
8 | * | 8 | * |
@@ -19,6 +19,10 @@ int nohup_main(int argc, char *argv[]) | |||
19 | int temp, nullfd; | 19 | int temp, nullfd; |
20 | char *nohupout = "nohup.out", *home = NULL; | 20 | char *nohupout = "nohup.out", *home = NULL; |
21 | 21 | ||
22 | // I have no idea why the standard cares about this. | ||
23 | |||
24 | bb_default_error_retval = 127; | ||
25 | |||
22 | if (argc<2) bb_show_usage(); | 26 | if (argc<2) bb_show_usage(); |
23 | 27 | ||
24 | nullfd = bb_xopen(bb_dev_null, O_WRONLY|O_APPEND); | 28 | nullfd = bb_xopen(bb_dev_null, O_WRONLY|O_APPEND); |