Skip to content

Don't overwrite errno if socket() fails on macOS/FreeBSD#368

Open
nomis wants to merge 1 commit intoboostorg:developfrom
nomis:macos-socket-errno-fix
Open

Don't overwrite errno if socket() fails on macOS/FreeBSD#368
nomis wants to merge 1 commit intoboostorg:developfrom
nomis:macos-socket-errno-fix

Conversation

@nomis
Copy link

@nomis nomis commented Nov 16, 2020

The unconditional call to setsockopt() even if socket() fails is breaking some of my unit tests for socket() errors because errno is overwritten with EBADF.

Fixes: 42b575c (Access errno only when on the error path.)

The unconditional call to setsockopt() even if socket() fails is
breaking some of my unit tests for socket() errors because errno
is overwritten with EBADF.

Fixes: 42b575c (Access errno only when on the error path.)
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.

1 participant