This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Daemons on eCos
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Kaustubh Purandare <kaustubh_purandare at rediffmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 15 Mar 2002 09:20:43 +0100
- Subject: Re: [ECOS] Daemons on eCos
- References: <20020315055000.19246.qmail@mailweb24.rediffmail.com>
On Fri, Mar 15, 2002 at 05:50:00AM -0000, Kaustubh Purandare wrote:
> Hi,
>
> Is it possible to create Daemons in eCos similar to UNIX?
> If yes any document is provided for coding guidlines
> for deamon?
A daemon is a unix concept. Its a process that disassociates itself
from the console, forks a child and then dies. The child becomes a
parent of init.
eCos does not have processes, it has threads. There is no association
to a console, its just there. All threads have access to the console
using stdio,stdio,stderr etc. The console cannot go away unlike
unix. Threads don't have a structure, unlike the unix tree structure.
So. Ask yourself, which part of the daemon concept do you need?
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss