From: Roy Marples Date: Wed, 10 Sep 2014 17:54:31 +0000 (+0000) Subject: Record the fd which had an error. X-Git-Tag: v6.4.4~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45ce93bc9f4e1b5b13569147b66cbe0687a09728;p=thirdparty%2Fdhcpcd.git Record the fd which had an error. --- diff --git a/control.c b/control.c index 9faa6bd9..2b300a8c 100644 --- a/control.c +++ b/control.c @@ -325,7 +325,7 @@ control_writeone(void *arg) iov[1].iov_base = data->data; iov[1].iov_len = data->data_len; if (writev(fd->fd, iov, 2) == -1) { - syslog(LOG_ERR, "%s: writev: %m", __func__); + syslog(LOG_ERR, "%s: writev fd %d: %m", __func__, fd->fd); if (errno != EINTR && errno != EAGAIN) control_delete(fd); return;