]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/simple/Accepter.cc: replace shutdown() with selfpipe event in poll() (FreeBSD)
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 13 Sep 2016 09:56:47 +0000 (11:56 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 22 Sep 2016 17:33:58 +0000 (19:33 +0200)
commitfff44962d6c25ccca035ead48756672051d8c1b2
treeb90569ba9b7dc4612231c21d3ea7c75115ddcbc0
parentbbf94ddfe03828f86e195a2e11be90fd4f8c7025
msg/simple/Accepter.cc: replace shutdown() with selfpipe event in poll() (FreeBSD)

In FreeBSD a shutdown on the socket here can generate:
accepter.stop shutdown failed: errno 57 (57) Socket is not connected
But that does not trigger an event with the poll on the socket.

Closing the socket does.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/msg/simple/Accepter.cc
src/msg/simple/Accepter.h