summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--nchan.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a9e993d46..2211ac3d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
6 - stevesk@cvs.openbsd.org 2001/04/02 14:20:23 6 - stevesk@cvs.openbsd.org 2001/04/02 14:20:23
7 [readconf.c servconf.c] 7 [readconf.c servconf.c]
8 correct comment; ok markus@ 8 correct comment; ok markus@
9 - (stevesk) nchan.c: remove ostate checks and add EINVAL to
10 shutdown(SHUT_RD) error() bypass for HP-UX.
9 11
1020010402 1220010402
11 - (stevesk) log.c openbsd sync; missing newlines 13 - (stevesk) log.c openbsd sync; missing newlines
@@ -4805,4 +4807,4 @@
4805 - Wrote replacements for strlcpy and mkdtemp 4807 - Wrote replacements for strlcpy and mkdtemp
4806 - Released 1.0pre1 4808 - Released 1.0pre1
4807 4809
4808$Id: ChangeLog,v 1.1046 2001/04/02 18:20:03 mouring Exp $ 4810$Id: ChangeLog,v 1.1047 2001/04/03 13:02:48 stevesk Exp $
diff --git a/nchan.c b/nchan.c
index d91217e54..77e4ef486 100644
--- a/nchan.c
+++ b/nchan.c
@@ -489,11 +489,10 @@ chan_shutdown_read(Channel *c)
489 /* 489 /*
490 * shutdown(sock, SHUT_READ) may return ENOTCONN if the 490 * shutdown(sock, SHUT_READ) may return ENOTCONN if the
491 * write side has been closed already. (bug on Linux) 491 * write side has been closed already. (bug on Linux)
492 * HP-UX will return EINVAL.
492 */ 493 */
493 if (shutdown(c->sock, SHUT_RD) < 0 494 if (shutdown(c->sock, SHUT_RD) < 0
494 && (errno != ENOTCONN 495 && (errno != ENOTCONN && errno != EINVAL))
495 || c->ostate == CHAN_OUTPUT_OPEN
496 || c->ostate == CHAN_OUTPUT_WAIT_DRAIN))
497 error("channel %d: chan_shutdown_read: shutdown() failed for fd%d [i%d o%d]: %.100s", 496 error("channel %d: chan_shutdown_read: shutdown() failed for fd%d [i%d o%d]: %.100s",
498 c->self, c->sock, c->istate, c->ostate, strerror(errno)); 497 c->self, c->sock, c->istate, c->ostate, strerror(errno));
499 } else { 498 } else {