summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
diff options
context:
space:
mode:
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 */
};