Mercurial > dropbear
comparison svr-chansession.c @ 359:78518751cb82 channel-fix
just shuffle some variables names about, a brief comment
about the "bad writefd" problem
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 01 Oct 2006 16:35:13 +0000 |
parents | 01e4180895ba |
children | 1c7bf9cec6c8 |
comparison
equal
deleted
inserted
replaced
358:e81d3bc1dc78 | 359:78518751cb82 |
---|---|
57 static void send_exitsignalstatus(struct Channel *channel); | 57 static void send_exitsignalstatus(struct Channel *channel); |
58 static void send_msg_chansess_exitstatus(struct Channel * channel, | 58 static void send_msg_chansess_exitstatus(struct Channel * channel, |
59 struct ChanSess * chansess); | 59 struct ChanSess * chansess); |
60 static void send_msg_chansess_exitsignal(struct Channel * channel, | 60 static void send_msg_chansess_exitsignal(struct Channel * channel, |
61 struct ChanSess * chansess); | 61 struct ChanSess * chansess); |
62 static int sesscheckclose(struct Channel *channel); | 62 static int sess_check_close(struct Channel *channel); |
63 static void get_termmodes(struct ChanSess *chansess); | 63 static void get_termmodes(struct ChanSess *chansess); |
64 | 64 |
65 | 65 |
66 /* required to clear environment */ | 66 /* required to clear environment */ |
67 extern char** environ; | 67 extern char** environ; |
68 | 68 |
69 static int sesscheckclose(struct Channel *channel) { | 69 static int sess_check_close(struct Channel *channel) { |
70 return channel->writefd == -1; | 70 return channel->writefd == -1; |
71 } | 71 } |
72 | 72 |
73 /* Handler for childs exiting, store the state for return to the client */ | 73 /* Handler for childs exiting, store the state for return to the client */ |
74 | 74 |
965 | 965 |
966 const struct ChanType svrchansess = { | 966 const struct ChanType svrchansess = { |
967 0, /* sepfds */ | 967 0, /* sepfds */ |
968 "session", /* name */ | 968 "session", /* name */ |
969 newchansess, /* inithandler */ | 969 newchansess, /* inithandler */ |
970 sesscheckclose, /* checkclosehandler */ | 970 sess_check_close, /* checkclosehandler */ |
971 chansessionrequest, /* reqhandler */ | 971 chansessionrequest, /* reqhandler */ |
972 closechansess, /* closehandler */ | 972 closechansess, /* closehandler */ |
973 }; | 973 }; |
974 | 974 |
975 | 975 |