i don't know if it's good code or bad code in general. i was pointing out that 
it is possible to
catch a call to sysfatal and do something else, since you seemed to indicate 
that was
not possible.

it may be a good strategy if you really feel that sysfatal needs to be caught 
for your 
particular application.  the advantage is that other, simplier applications 
need not 
be complicated by handling things like malloc failures.

- erik

On Fri Jun  9 19:46:28 CDT 2006, [EMAIL PROTECTED] wrote:
> > sure you can.  sysfatal calls _sysfatal to do the deed.  redefine that to 
> > call your
> > fancy cleanup routine and you're golden.
> 
> And you think that's an example of writing good code? I thought we are
> talking about a system with clean design that you don't need to use kludges 
> in :)
> 
>       Lucho

Reply via email to