summaryrefslogtreecommitdiff
path: root/src/nohup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nohup.c')
-rw-r--r--src/nohup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nohup.c b/src/nohup.c
index 1a99b6cb8..1f8e62bc4 100644
--- a/src/nohup.c
+++ b/src/nohup.c
@@ -112,8 +112,8 @@ main (int argc, char **argv)
to ensure any read evokes an error. */
if (ignoring_input)
{
- if (0 <= fd_reopen (STDIN_FILENO, "/dev/null", O_WRONLY, 0)
- && !redirecting_stdout && !redirecting_stderr)
+ fd_reopen (STDIN_FILENO, "/dev/null", O_WRONLY, 0);
+ if (!redirecting_stdout && !redirecting_stderr)
error (0, 0, _("ignoring input"));
}