From: Lennart Poettering Date: Tue, 19 Mar 2019 14:39:07 +0000 (+0100) Subject: util: add one more disconnect errno code X-Git-Tag: v242-rc1~106^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd90e39cb6f1bd078aa5bf3c37963d5adb06a1c3;p=thirdparty%2Fsystemd.git util: add one more disconnect errno code --- diff --git a/src/basic/errno-util.h b/src/basic/errno-util.h index 067b4fa3031..615b6a806a8 100644 --- a/src/basic/errno-util.h +++ b/src/basic/errno-util.h @@ -35,7 +35,8 @@ static inline int negative_errno(void) { #define ERRNO_IS_DISCONNECT(r) \ IN_SET(abs(r), \ ENOTCONN, ECONNRESET, ECONNREFUSED, ECONNABORTED, EPIPE, \ - ENETUNREACH, EHOSTUNREACH, ENOPROTOOPT, EHOSTDOWN, ENONET) + ENETUNREACH, EHOSTUNREACH, ENOPROTOOPT, EHOSTDOWN, \ + ENONET, ESHUTDOWN) /* Resource exhaustion, could be our fault or general system trouble */ #define ERRNO_IS_RESOURCE(r) \