diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | nchan.c | 5 |
2 files changed, 5 insertions, 4 deletions
@@ -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 | ||
10 | 20010402 | 12 | 20010402 |
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 $ |
@@ -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 { |