This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Daemons on eCos


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]