summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-24 12:17:14 -0400
committerJune McEnroe <june@causal.agency>2021-09-24 12:17:14 -0400
commit28c1be71482fef0857f60162660d53bc1bfc0f25 (patch)
tree8a808701a37077688b0947acc6d2b734405b0c32 /bin
parentConsume request headers using MSG_PEEK (diff)
downloadsrc-28c1be71482fef0857f60162660d53bc1bfc0f25.tar.gz
src-28c1be71482fef0857f60162660d53bc1bfc0f25.zip
Set original socket CLOEXEC
Diffstat (limited to '')
-rw-r--r--bin/quick.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/quick.c b/bin/quick.c
index 06810463..cfd871fe 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");