1
0
mirror of https://github.com/prirun/p50em.git synced 2026-04-13 23:23:42 +00:00

devpnc: add ENOTCONN as known error when connect fails

This commit is contained in:
Jim
2011-11-26 13:36:56 -05:00
parent 49a81258ae
commit 2e5674013a

View File

@@ -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);