diff options
| -rw-r--r-- | src/supervise-daemon/supervise-daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervise-daemon/supervise-daemon.c b/src/supervise-daemon/supervise-daemon.c index 90325837..d896a695 100644 --- a/src/supervise-daemon/supervise-daemon.c +++ b/src/supervise-daemon/supervise-daemon.c @@ -618,7 +618,7 @@ RC_NORETURN static void child_process(char *exec, char **argv) if (flags != -1) error = fcntl(notify.fd, F_SETFD, flags & ~FD_CLOEXEC); } else { - error = dup2(notify.pipe[1], notify.fd); + error = dup2(notify.pipe[1], notify.fd) == -1; } if (error) |
