Skip to content

Use SOCK_CLOEXEC when creating sockets#4364

Merged
pks-t merged 1 commit intolibgit2:masterfrom
andoma:master
Oct 6, 2017
Merged

Use SOCK_CLOEXEC when creating sockets#4364
pks-t merged 1 commit intolibgit2:masterfrom
andoma:master

Conversation

@andoma
Copy link
Copy Markdown
Contributor

@andoma andoma commented Oct 4, 2017

Similar to how O_CLOEXEC is used for open() libgit2 should also use SOCK_CLOEXEC (when available) for opening sockets.

@pks-t pks-t merged commit ec76cc4 into libgit2:master Oct 6, 2017
@pks-t
Copy link
Copy Markdown
Member

pks-t commented Oct 6, 2017

Hi @andoma, thanks for your first PR! The change definitly looks sensible to me (even though the interface itself looks horrible, but that's to blame on backwards compatibility here with the socket function). Thanks a lot 👍

@pks-t pks-t added the backport label Jan 11, 2018
@pks-t pks-t mentioned this pull request Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants