From 567bd8cbf63322442684eca0e20ba270ae110639 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 17 May 2023 10:52:23 +0100 Subject: [PATCH] control: Ingore control not connected errors too For FreeBSD. Another one for #205. --- src/control.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/control.c b/src/control.c index 8c630690..3de8bf91 100644 --- a/src/control.c +++ b/src/control.c @@ -164,8 +164,10 @@ control_handle_write(struct fd_list *fd) } if (writev(fd->fd, iov, iov_len) == -1) { - if (errno != EPIPE) // We don't get ELE_HANGUP for some reason + if (errno != EPIPE && errno != ENOTCONN) { + // We don't get ELE_HANGUP for some reason logerr("%s: write", __func__); + } control_hangup(fd); return; } -- 2.47.2