Commit 8b0aa386 authored by Niels Möller's avatar Niels Möller

*** empty log message ***

Rev: ChangeLog:1.437
Rev: src/channel.c:1.106
Rev: src/client_session.c:1.14
parent 0e97f2d6
2001-10-29 Niels Mller <nisse@ehand.com>
* src/testsuite/Makefile.am (TS_MORE_SH): Added lshg-1-test.
* src/server_session.c (do_eof): Signal EOF on the process' stdin.
2001-10-26 Niels Mller <nisse@ehand.com>
* src/sftp/sftp-server.c (sftp_process_read): Use the same type
......
......@@ -1906,8 +1906,9 @@ channel_read_close_callback(struct lsh_callback *c)
trace("channel_read_close_callback: File closed.\n");
assert(closure->channel->sources);
if (!--closure->channel->sources)
closure->channel->sources--;
if (!closure->channel->sources)
{
/* Send eof, unless already done. */
channel_eof(closure->channel);
......
......@@ -156,12 +156,14 @@ do_client_io(struct command *s UNUSED,
/* Setup escape char handler, if appropriate. */
session->in->read = client_read_stdin(session);
/* FIXME: Perhaps there is some way to arrange that channel.c calls
* the CHANNEL_SEND_ADJUST method instead? */
if (session->super.send_window_size)
lsh_oop_register_read_fd(session->in);
/* FIXME: We should also arrange so that the tty is reset before we
* close it. */
session->in->close_callback
= make_channel_read_close_callback(channel);
......
Markdown is supported
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