This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
PPP calls exit()
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 16 Apr 2004 09:20:08 +0200
- Subject: [ECOS] PPP calls exit()
- Organization: Zylin AS
Is this intentional?
It seems strange for something like PPP to call exit().
Wouldn't that normally cause a reboot?
externC void
cyg_pppd_main(CYG_ADDRWORD arg)
{
int i;
struct timeval timo;
struct protent *protp;
int connect_attempts = 0;
phase = PHASE_INITIALIZE;
for (i = 0; (protp = protocols[i]) != NULL; ++i)
(*protp->init)(0);
cyg_ppp_options_install( ((struct tty *)arg)->options );
if (!ppp_available()) {
option_error(no_ppp_msg);
exit(1);
}
--
Øyvind Harboe
http://www.zylin.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss