Mercurial > dropbear
diff svr-chansession.c @ 362:1c7bf9cec6c8 channel-fix
Rearranged some more bits, marked some areas that need work.
* send_msg_channel_data() no longer allocates a separate buffer
* getchannel() handles unknown channels so callers don't have to
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 02 Oct 2006 16:34:06 +0000 |
parents | 78518751cb82 |
children | 90cb290836de |
line wrap: on
line diff
--- a/svr-chansession.c Sun Oct 01 16:35:13 2006 +0000 +++ b/svr-chansession.c Mon Oct 02 16:34:06 2006 +0000 @@ -59,17 +59,12 @@ struct ChanSess * chansess); static void send_msg_chansess_exitsignal(struct Channel * channel, struct ChanSess * chansess); -static int sess_check_close(struct Channel *channel); static void get_termmodes(struct ChanSess *chansess); /* required to clear environment */ extern char** environ; -static int sess_check_close(struct Channel *channel) { - return channel->writefd == -1; -} - /* Handler for childs exiting, store the state for return to the client */ /* There's a particular race we have to watch out for: if the forked child @@ -967,7 +962,7 @@ 0, /* sepfds */ "session", /* name */ newchansess, /* inithandler */ - sess_check_close, /* checkclosehandler */ + NULL, /* checkclosehandler */ chansessionrequest, /* reqhandler */ closechansess, /* closehandler */ };