Commit 561b6535 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

EPIPE is a documented errno in tcp(7) on linux

Fixes: #2582
parent b89a4959
...@@ -567,7 +567,7 @@ VTCP_Check(int a) ...@@ -567,7 +567,7 @@ VTCP_Check(int a)
{ {
if (a == 0) if (a == 0)
return (1); return (1);
if (errno == ECONNRESET || errno == ENOTCONN) if (errno == ECONNRESET || errno == ENOTCONN || errno == EPIPE)
return (1); return (1);
#if (defined (__SVR4) && defined (__sun)) || defined (__NetBSD__) #if (defined (__SVR4) && defined (__sun)) || defined (__NetBSD__)
/* /*
...@@ -575,7 +575,7 @@ VTCP_Check(int a) ...@@ -575,7 +575,7 @@ VTCP_Check(int a)
* connection. * connection.
* This is a bug in Solaris and documented behaviour on NetBSD. * This is a bug in Solaris and documented behaviour on NetBSD.
*/ */
if (errno == EINVAL || errno == ETIMEDOUT || errno == EPIPE) if (errno == EINVAL || errno == ETIMEDOUT)
return (1); return (1);
#elif defined (__APPLE__) #elif defined (__APPLE__)
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment