From 2e5674013a84b25a1760cc6e6daef81311c54d8c Mon Sep 17 00:00:00 2001 From: Jim Date: Sat, 26 Nov 2011 13:36:56 -0500 Subject: [PATCH] devpnc: add ENOTCONN as known error when connect fails --- devpnc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devpnc.h b/devpnc.h index f73f358..85ab994 100644 --- a/devpnc.h +++ b/devpnc.h @@ -553,7 +553,7 @@ pncauth1(int nodeid, time_t timenow) { if (n == -1) { if (errno == EWOULDBLOCK || errno == EINTR || errno == EAGAIN || errno == EINPROGRESS) return; - if (errno != EPIPE) + if (errno != EPIPE && errno != ENOTCONN) perror("error sending PNC uid"); } else fprintf(stderr, "devpnc: expected %d bytes, only wrote %d bytes for uid\n", MAXUIDLEN, n);