comparison svr-chansession.c @ 9:7f77962de998

- Reworked non-channel fd handling to listener.c - More channel cleaning up
author Matt Johnston <matt@ucc.asn.au>
date Thu, 03 Jun 2004 16:45:53 +0000
parents 425ed5c20157
children f76c9389e9e0
comparison
equal deleted inserted replaced
7:425ed5c20157 9:7f77962de998
199 chansess->exited = 0; 199 chansess->exited = 0;
200 200
201 channel->typedata = chansess; 201 channel->typedata = chansess;
202 202
203 #ifndef DISABLE_X11FWD 203 #ifndef DISABLE_X11FWD
204 chansess->x11fd = -1; 204 chansess->x11listener = NULL;
205 chansess->x11authprot = NULL; 205 chansess->x11authprot = NULL;
206 chansess->x11authcookie = NULL; 206 chansess->x11authcookie = NULL;
207 #endif 207 #endif
208 208
209 #ifndef DISABLE_AGENTFWD 209 #ifndef DISABLE_AGENTFWD
210 chansess->agentfd = -1; 210 chansess->agentlistener = NULL;
211 chansess->agentfile = NULL; 211 chansess->agentfile = NULL;
212 chansess->agentdir = NULL; 212 chansess->agentdir = NULL;
213 #endif 213 #endif
214 214
215 return 0; 215 return 0;
879 execv(usershell, argv); 879 execv(usershell, argv);
880 880
881 /* only reached on error */ 881 /* only reached on error */
882 dropbear_exit("child failed"); 882 dropbear_exit("child failed");
883 } 883 }
884 884
885 const struct ChanType svrchansess = { 885 const struct ChanType svrchansess = {
886 0, /* sepfds */ 886 0, /* sepfds */
887 "session", /* name */ 887 "session", /* name */
888 newchansess, /* inithandler */ 888 newchansess, /* inithandler */
889 sesscheckclose, /* checkclosehandler */ 889 sesscheckclose, /* checkclosehandler */