summaryrefslogtreecommitdiff
path: root/nchan.c
diff options
context:
space:
mode:
Diffstat (limited to 'nchan.c')
-rw-r--r--nchan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nchan.c b/nchan.c
index 43d80bf2..5c18487f 100644
--- a/nchan.c
+++ b/nchan.c
@@ -534,10 +534,10 @@ chan_shutdown_read(Channel *c)
/*
* shutdown(sock, SHUT_READ) may return ENOTCONN if the
* write side has been closed already. (bug on Linux)
- * HP-UX will return EINVAL.
+ * HP-UX may return ENOTCONN also.
*/
if (shutdown(c->sock, SHUT_RD) < 0
- && (errno != ENOTCONN && errno != EINVAL))
+ && errno != ENOTCONN)
error("channel %d: chan_shutdown_read: "
"shutdown() failed for fd%d [i%d o%d]: %.100s",
c->self, c->sock, c->istate, c->ostate,