aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-08-03 22:49:51 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-21 05:40:24 +0200
commitaa4e86c2a0f7090e697830124ff1629d53d1ac5d (patch)
treef99ff7ebbfbd237065fb9521f7dce535e6919861 /degesch.c
parent5bbe9ceef88cbc1632a245ac2e98aee944999d64 (diff)
downloadxK-aa4e86c2a0f7090e697830124ff1629d53d1ac5d.tar.gz
xK-aa4e86c2a0f7090e697830124ff1629d53d1ac5d.tar.xz
xK-aa4e86c2a0f7090e697830124ff1629d53d1ac5d.zip
degesch: add a comment about ENOTCONN
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 9511538..8a1de8f 100644
--- a/degesch.c
+++ b/degesch.c
@@ -4758,6 +4758,8 @@ irc_real_shutdown (struct server *s)
s->transport->in_before_shutdown (s);
while (shutdown (s->socket, SHUT_WR) == -1)
+ // XXX: we get ENOTCONN with OpenSSL (not plain) when a localhost
+ // server is aborted, why? strace says read 0, write 31, shutdown -1.
if (!soft_assert (errno == EINTR))
break;