[ECOS] PPP calls exit()

Nick Garnett nickg@ecoscentric.com
Fri Apr 16 10:49:00 GMT 2004

Ø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.

Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com      The eCos and RedBoot experts

Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list