From: Roy Marples Date: Wed, 17 May 2023 09:45:34 +0000 (+0000) Subject: control: ignore EPIPE errors on write X-Git-Tag: v10.0.2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=536115a0022cf40c20211ea764db398eb21806f9;p=thirdparty%2Fdhcpcd.git control: ignore EPIPE errors on write Other end has shutdown. --- diff --git a/src/control.c b/src/control.c index ecd6d47f..8c630690 100644 --- a/src/control.c +++ b/src/control.c @@ -164,7 +164,8 @@ control_handle_write(struct fd_list *fd) } if (writev(fd->fd, iov, iov_len) == -1) { - logerr("%s: write", __func__); + if (errno != EPIPE) // We don't get ELE_HANGUP for some reason + logerr("%s: write", __func__); control_hangup(fd); return; }