port: shutdown(2) can return ENOTCONN on FreeBSD
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 9 Nov 2020 16:40:37 +0000 (11:40 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 28 Oct 2022 15:56:51 +0000 (11:56 -0400)
commit7d1f4920efe33a4d025b9ba632ffbe73557d9636
tree1ebc5b7362289388285f7b856a29e5e1b549bc76
parent8a00688e1d58cc5a2e77eba206ff23bd6105130c
port: shutdown(2) can return ENOTCONN on FreeBSD

On FreeBSD shutdown(2) will return ENOTCONN when called on a
disconnected socket which is not the case on Linux. It will however
still run the shutdown code on the socket and wakeup threads waiting on
the socket, so we can safely ignore this specific error.

For more details see this bug report:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227259

Change-Id: I0046382ab996060f940dd1283d18447792cf1fd3
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/unix.cpp
This page took 0.024561 seconds and 4 git commands to generate.