diff options
| author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2026-04-02 02:30:12 +0200 |
|---|---|---|
| committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2026-04-02 02:30:12 +0200 |
| commit | 77a0e25a82920a0b8954f9039d47c129ef3514ba (patch) | |
| tree | 7627b15f99344c799aef24c8a861020d444a9534 | |
| parent | 109a0bf0f2cc06a2d38ac6f6b39c6d178eeaf0e1 (diff) | |
supervise-daemon: properly error check dup2 on ready.fdorigin/masterorigin/HEAD
| -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) |
