This is the mail archive of the ecos-patches@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: linux exec fis


On Tue, 2003-03-11 at 17:01, Gary Thomas wrote:

> Sadly, I don't see a good way to do that since the 'exec' command
> is optional and [very] platform/architecture specific.  However,
> adding this to all [known] implementations would be nice (Mark).

What do you think of a mechanism ala init/fini where any module, as it's
initializing, can register a finalizer in a global table? The 'exec'
implementation would then need to call a system shutdown function which
invokes each registered finalizer in reverse order of registration.

This would require a unique modification to the 'exec' implementations
and work for future cases similar to the Ethernet shutdown.

-- 
rnf



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