util: add one more disconnect errno code
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Mar 2019 14:39:07 +0000 (15:39 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Mar 2019 14:39:07 +0000 (15:39 +0100)
src/basic/errno-util.h

index 067b4fa..615b6a8 100644 (file)
@@ -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) \