Commit 9bf1afcb authored by Niels Möller's avatar Niels Möller
Browse files

(do_channel_forward_eof): Don't call

shutdown(), use close_fd_write instead.

Rev: src/channel_forward.c:1.4
parent 929ce317
......@@ -105,9 +105,9 @@ do_channel_forward_eof(struct ssh_channel *s)
CAST(channel_forward, self, s);
if (shutdown (self->socket->fd, SHUT_WR) < 0)
werror("do_channel_forward_eof, shutdown failed, (errno = %i): %z\n",
errno, STRERROR(errno));
/* We won't write any more. io.c should make sure that shutdown is called
* once the write_buffer is empty. */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment