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:
2
devpnc.h
2
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);
|
||||
|
||||
Reference in New Issue
Block a user