summaryrefslogtreecommitdiff
path: root/coreutils/nohup.c
diff options
context:
space:
mode:
authorRob Landley2006-05-24 17:58:00 +0000
committerRob Landley2006-05-24 17:58:00 +0000
commit027ea1aeaccc0640b80c5b324ff34a6e1d69bc6c (patch)
tree58b6962b20b02637a9723dbee6a6cae2851c77c8 /coreutils/nohup.c
parent5fc467e758819b01d7516851d7e0993b43cceccf (diff)
downloadbusybox-027ea1aeaccc0640b80c5b324ff34a6e1d69bc6c.zip
busybox-027ea1aeaccc0640b80c5b324ff34a6e1d69bc6c.tar.gz
Two more issues pointed out by Bernhard.
Diffstat (limited to 'coreutils/nohup.c')
-rw-r--r--coreutils/nohup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/coreutils/nohup.c b/coreutils/nohup.c
index 50f54cc..9d7a0f5 100644
--- a/coreutils/nohup.c
+++ b/coreutils/nohup.c
@@ -2,7 +2,7 @@
/* nohup - invoke a utility immune to hangups.
*
* Busybox version based on nohup specification at
- * http://www.opengroup.org/onlinepubs/007904975/utilities/sed.html
+ * http://www.opengroup.org/onlinepubs/007904975/utilities/nohup.html
*
* Copyright 2006 Rob Landley <rob@landley.net>
*
@@ -19,6 +19,10 @@ int nohup_main(int argc, char *argv[])
int temp, nullfd;
char *nohupout = "nohup.out", *home = NULL;
+ // I have no idea why the standard cares about this.
+
+ bb_default_error_retval = 127;
+
if (argc<2) bb_show_usage();
nullfd = bb_xopen(bb_dev_null, O_WRONLY|O_APPEND);