aboutsummaryrefslogtreecommitdiff
path: root/coreutils/nohup.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/nohup.c')
-rw-r--r--coreutils/nohup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/coreutils/nohup.c b/coreutils/nohup.c
index c9e65d2ba..4f6385f8e 100644
--- a/coreutils/nohup.c
+++ b/coreutils/nohup.c
@@ -39,7 +39,9 @@ int nohup_main(int argc UNUSED_PARAM, char **argv)
39 39
40 xfunc_error_retval = 127; 40 xfunc_error_retval = 127;
41 41
42 if (!argv[1]) bb_show_usage(); 42 if (!argv[1]) {
43 bb_show_usage();
44 }
43 45
44 /* If stdin is a tty, detach from it. */ 46 /* If stdin is a tty, detach from it. */
45 if (isatty(STDIN_FILENO)) { 47 if (isatty(STDIN_FILENO)) {