diff options
Diffstat (limited to 'coreutils/nohup.c')
-rw-r--r-- | coreutils/nohup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/nohup.c b/coreutils/nohup.c index 439fbb173..21adfc1c3 100644 --- a/coreutils/nohup.c +++ b/coreutils/nohup.c | |||
@@ -42,12 +42,12 @@ int nohup_main(int argc, char **argv) | |||
42 | * Else redirect to /dev/null. | 42 | * Else redirect to /dev/null. |
43 | */ | 43 | */ |
44 | temp = isatty(STDERR_FILENO); | 44 | temp = isatty(STDERR_FILENO); |
45 | if (temp) bb_error_msg("Appending to %s", nohupout); | 45 | if (temp) bb_error_msg("appending to %s", nohupout); |
46 | dup2(temp ? STDOUT_FILENO : nullfd, STDERR_FILENO); | 46 | dup2(temp ? STDOUT_FILENO : nullfd, STDERR_FILENO); |
47 | close(nullfd); | 47 | close(nullfd); |
48 | signal (SIGHUP, SIG_IGN); | 48 | signal (SIGHUP, SIG_IGN); |
49 | 49 | ||
50 | execvp(argv[1],argv+1); | 50 | execvp(argv[1],argv+1); |
51 | if (00 && ENABLE_FEATURE_CLEAN_UP && home) free(nohupout); | 51 | if (00 && ENABLE_FEATURE_CLEAN_UP && home) free(nohupout); |
52 | bb_perror_msg_and_die("%s",argv[1]); | 52 | bb_perror_msg_and_die("%s", argv[1]); |
53 | } | 53 | } |