Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
 
root / src / device / CMakeLists.txt
Author[]Andy Green <andy@warmcat.com> 2026-04-19 20:09 UTC
Committer[]Andy Green <andy@warmcat.com> 2026-04-19 20:09 UTC
Treefecc2d1e4b8e2503607985a83f5ea2ba30cd9d03   Raw Patch
 
CID 503237: CHECKED_RETURN
CID 503237: CHECKED_RETURN
diff --git a/src/builder/b-deletion.c b/src/builder/b-deletion.c index aab656e..7e08dbe 100644 --- a/src/builder/b-deletion.c +++ b/src/builder/b-deletion.c @@ -291,8 +291,13 @@ saib_deletion_init(const char *argv0) return 1; } - fcntl(pfd[0], F_SETFD, FD_CLOEXEC); - fcntl(pfd[1], F_SETFD, FD_CLOEXEC); + if (fcntl(pfd[0], F_SETFD, FD_CLOEXEC) < 0 || + fcntl(pfd[1], F_SETFD, FD_CLOEXEC) < 0) { + lwsl_err("fcntl FD_CLOEXEC failed\n"); + close(pfd[0]); + close(pfd[1]); + return 1; + } pid = fork(); if (pid == -1) {
Page fetched 0s ago, creation time: 1ms (vhost etag hits: 0%, cache hits: 0%)