From 37ece3b35a3e37bd4aa37e0d75affbfa4ad358f3 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 24 Sep 2021 12:17:14 -0400 Subject: Set original socket CLOEXEC --- bin/quick.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/quick.c b/bin/quick.c index 064b81d8..d6361aad 100644 --- a/bin/quick.c +++ b/bin/quick.c @@ -153,6 +153,7 @@ int main(int argc, char *argv[]) { setenv("SCRIPT_NAME", "/", 1); for (int sock; 0 <= (sock = accept(server, NULL, NULL)); close(sock)) { + fcntl(sock, F_SETFD, FD_CLOEXEC); request(sock, &argv[optind]); } err(EX_IOERR, "accept"); -- cgit 1.4.1