Skip to content

Use SOCK_CLOEXEC in socket_open when available#20442

Closed
ibookstein wants to merge 1 commit intocurl:masterfrom
ibookstein:patch-1
Closed

Use SOCK_CLOEXEC in socket_open when available#20442
ibookstein wants to merge 1 commit intocurl:masterfrom
ibookstein:patch-1

Conversation

@ibookstein
Copy link
Contributor

To close the possible race between socket() and fcntl(),
we use SOCK_CLOEXEC instead of fcntl() when it is available.

To close the possible race between socket() and fcntl(),
we use SOCK_CLOEXEC instead of fcntl() when it is available.
@bagder bagder requested a review from icing January 27, 2026 23:09
@bagder bagder closed this in 0536769 Jan 28, 2026
@bagder
Copy link
Member

bagder commented Jan 28, 2026

Thanks!

@ibookstein ibookstein deleted the patch-1 branch January 28, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants