summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-10-02 16:34:06 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-10-02 16:34:06 +0000
commitdf57eb382479e5719713c9cc02c2f06882f9b9a7 (patch)
treeff7b5ce80a4dff6cab2d1fe5dfa05ac31a5520ac /svr-chansession.c
parent7e04c5e277665105cc9fe85bacb8f8e211722f02 (diff)
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 --HG-- branch : channel-fix extra : convert_revision : 3db645581be0fbb0d2ac8d218fbd55e096cbbbe5
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index 03590b7..57ec118 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -59,17 +59,12 @@ static void send_msg_chansess_exitstatus(struct Channel * channel,
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 @@ const struct ChanType svrchansess = {
0, /* sepfds */
"session", /* name */
newchansess, /* inithandler */
- sess_check_close, /* checkclosehandler */
+ NULL, /* checkclosehandler */
chansessionrequest, /* reqhandler */
closechansess, /* closehandler */
};