linux exec fis

Robin Farine robin.farine@acn-group.ch
Tue Mar 11 16:24:00 GMT 2003


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




More information about the Ecos-patches mailing list