This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: PPP calls exit()
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: Nick Garnett <nickg at ecoscentric dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 16 Apr 2004 11:37:01 +0200
- Subject: Re: [ECOS] PPP calls exit()
- Organization: Zylin AS
- References: <1082100007.2649.5.camel@famine> <m3fzb4l1z4.fsf@miso.calivar.com>
On Fri, 2004-04-16 at 11:13, Nick Garnett wrote:
> Øyvind Harboe <oyvind.harboe@zylin.com> writes:
>
> > Is this intentional?
> >
> > It seems strange for something like PPP to call exit().
> >
> > Wouldn't that normally cause a reboot?
>
>
> It would probably just cause the PPP daemon thread to go into a spin,
> or maybe provoke an assertion. This is a hangover from this code's
> origins. Basically, ppp_available() will always return true, there's
> no way in eCos to have the daemon without the drivers. If it does
> return false then something really seriously bad has happened during
> configuration or build and it really doesn't matter what happens once
> the error message is out, the whole system is screwed anyway.
I see.
Is it a goal to avoid divergence with the original code?
The code is a bit more convoluted than the average eCos code.
--
Ø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