mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 20:46:01 +01:00
Curl creates sockets without setting FD_CLOEXEC/SOCK_CLOEXEC, this can
cause connections to remain open forever when using commands like `nix
shell`
This change sets the FD_CLOEXEC flag using a CURLOPT_SOCKOPTFUNCTION
callback.
(cherry picked from commit 12d2527276)
315 B
315 B
| synopsis | issues | prs | |
|---|---|---|---|
| Set FD_CLOEXEC on sockets created by curl |
|
Curl creates sockets without setting FD_CLOEXEC/SOCK_CLOEXEC, this can cause connections to remain open forever when using commands like nix shell
This change sets the FD_CLOEXEC flag using a CURLOPT_SOCKOPTFUNCTION callback.