Skip to content

Use SOCK_CLOEXEC in socket_open when available - #20442

Closed
ibookstein wants to merge 1 commit into
curl:masterfrom
ibookstein:patch-1
Closed

ibookstein wants to merge 1 commit into
curl:masterfrom
ibookstein:patch-1

Conversation

@ibookstein

Copy link
Copy Markdown
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

bagder commented Jan 28, 2026

Copy link
Copy Markdown
Member

Thanks!

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