]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Adjust to new calling convention for set_cloexec_flag.
authorJim Meyering <jim@meyering.net>
Sun, 4 Apr 2004 06:33:44 +0000 (06:33 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 4 Apr 2004 06:33:44 +0000 (06:33 +0000)
src/nohup.c

index 6c9f542310fe6cb6652dd29dfd06e7fbeb52b18b..f476d8483528baa909c25cc87fb8a638c9131608 100644 (file)
@@ -150,7 +150,7 @@ main (int argc, char **argv)
       saved_stderr_fd = dup (STDERR_FILENO);
 
       if (saved_stderr_fd != -1
-         && ! set_cloexec_flag (saved_stderr_fd, true))
+         && set_cloexec_flag (saved_stderr_fd, true) != 0)
        error (NOHUP_FAILURE, errno,
               _("failed to set the copy of stderr to close on exec"));