just shuffle some variables names about, a brief comment

about the "bad writefd" problem

--HG--
branch : channel-fix
extra : convert_revision : f0b407c3d3e047ed83174e6f4ebd85a19352df5b
This commit is contained in:
Matt Johnston
2006-10-01 16:35:13 +00:00
parent 33a182674a
commit 7e04c5e277
4 changed files with 88 additions and 103 deletions

View File

@@ -59,14 +59,14 @@ 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 sesscheckclose(struct Channel *channel);
static int sess_check_close(struct Channel *channel);
static void get_termmodes(struct ChanSess *chansess);
/* required to clear environment */
extern char** environ;
static int sesscheckclose(struct Channel *channel) {
static int sess_check_close(struct Channel *channel) {
return channel->writefd == -1;
}
@@ -967,7 +967,7 @@ const struct ChanType svrchansess = {
0, /* sepfds */
"session", /* name */
newchansess, /* inithandler */
sesscheckclose, /* checkclosehandler */
sess_check_close, /* checkclosehandler */
chansessionrequest, /* reqhandler */
closechansess, /* closehandler */
};