Commit 1da6f679 authored by Niels Möller's avatar Niels Möller
Browse files

Use an eof-callback on the channel. Don't close files too early.

Rev: src/client.c:1.35
parent 789773cd
......@@ -334,9 +334,11 @@ static int close_client_session(struct ssh_channel *c)
MDEBUG(session);
close_fd(&session->in->super);
close_fd(&session->out->super);
close_fd(&session->err->super);
close_fd(&session->in->super, 0);
#if 0
close_fd(&session->out->super, 0);
close_fd(&session->err->super, 0);
#endif
return LSH_OK | LSH_CHANNEL_PENDING_CLOSE;
}
......@@ -513,6 +515,8 @@ static int do_io(struct ssh_channel *channel)
ALIST_SET(channel->request_types, ATOM_EXIT_SIGNAL,
make_handle_exit_signal(closure->exit_status));
channel->eof = close_client_session;
return LSH_OK | LSH_GOON;
}
......
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