summaryrefslogtreecommitdiff
path: root/nchan.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-09-18 16:08:24 +0000
committerKevin Steves <stevesk@pobox.com>2001-09-18 16:08:24 +0000
commit871f662cb64b70e723c3486d872fcb497a0c3f56 (patch)
tree7391610a5293448c51565d32e6f757b4576e4aa1 /nchan.c
parentcc7aafc7a4d59b3f25c511a24b593e73232b7074 (diff)
- (stevesk) nchan.c: we use X/Open Sockets on HP-UX now so shutdown(2)
returns ENOTCONN vs. EINVAL for socket not connected; remove EINVAL check. ok Lutz Jaenicke
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 43d80bf25..5c18487fb 100644
--- a/nchan.c
+++ b/nchan.c
@@ -534,10 +534,10 @@ chan_shutdown_read(Channel *c)
534 /* 534 /*
535 * shutdown(sock, SHUT_READ) may return ENOTCONN if the 535 * shutdown(sock, SHUT_READ) may return ENOTCONN if the
536 * write side has been closed already. (bug on Linux) 536 * write side has been closed already. (bug on Linux)
537 * HP-UX will return EINVAL. 537 * HP-UX may return ENOTCONN also.
538 */ 538 */
539 if (shutdown(c->sock, SHUT_RD) < 0 539 if (shutdown(c->sock, SHUT_RD) < 0
540 && (errno != ENOTCONN && errno != EINVAL)) 540 && errno != ENOTCONN)
541 error("channel %d: chan_shutdown_read: " 541 error("channel %d: chan_shutdown_read: "
542 "shutdown() failed for fd%d [i%d o%d]: %.100s", 542 "shutdown() failed for fd%d [i%d o%d]: %.100s",
543 c->self, c->sock, c->istate, c->ostate, 543 c->self, c->sock, c->istate, c->ostate,