version 1.61, 2008/09/11 14:22:37 |
version 1.62, 2008/11/07 18:50:18 |
|
|
if (c->sock != -1) { |
if (c->sock != -1) { |
if (shutdown(c->sock, SHUT_WR) < 0) |
if (shutdown(c->sock, SHUT_WR) < 0) |
debug2("channel %d: chan_shutdown_write: " |
debug2("channel %d: chan_shutdown_write: " |
"shutdown() failed for fd%d: %.100s", |
"shutdown() failed for fd %d: %.100s", |
c->self, c->sock, strerror(errno)); |
c->self, c->sock, strerror(errno)); |
} else { |
} else { |
if (channel_close_fd(&c->wfd) < 0) |
if (channel_close_fd(&c->wfd) < 0) |
logit("channel %d: chan_shutdown_write: " |
logit("channel %d: chan_shutdown_write: " |
"close() failed for fd%d: %.100s", |
"close() failed for fd %d: %.100s", |
c->self, c->wfd, strerror(errno)); |
c->self, c->wfd, strerror(errno)); |
} |
} |
} |
} |
|
|
if (c->sock != -1) { |
if (c->sock != -1) { |
if (shutdown(c->sock, SHUT_RD) < 0) |
if (shutdown(c->sock, SHUT_RD) < 0) |
error("channel %d: chan_shutdown_read: " |
error("channel %d: chan_shutdown_read: " |
"shutdown() failed for fd%d [i%d o%d]: %.100s", |
"shutdown() failed for fd %d [i%d o%d]: %.100s", |
c->self, c->sock, c->istate, c->ostate, |
c->self, c->sock, c->istate, c->ostate, |
strerror(errno)); |
strerror(errno)); |
} else { |
} else { |
if (channel_close_fd(&c->rfd) < 0) |
if (channel_close_fd(&c->rfd) < 0) |
logit("channel %d: chan_shutdown_read: " |
logit("channel %d: chan_shutdown_read: " |
"close() failed for fd%d: %.100s", |
"close() failed for fd %d: %.100s", |
c->self, c->rfd, strerror(errno)); |
c->self, c->rfd, strerror(errno)); |
} |
} |
} |
} |