[asterisk-dev] SIGHUP handling

Paul Hewlett paul at gccs.co.za
Wed Jan 31 06:24:42 MST 2007


On Wednesday 31 January 2007 01:23, Edwin Groothuis wrote:
> On Tue, Jan 30, 2007 at 08:45:17AM -0800, Bob wrote:
> > After writing a few embedded operating systems in my career - the
> > general rule of thumb to avoid nasty operational surprises has been that
> > an interrupt handler should never make a call to another function. Have
> > it set a flag and exit and then check for the flag in the main
> > processing loop. Your trouble reports and bug list will get much
> > shorter....
>
> I second this. I've had my share of fun with these things in the
> past and I'm totally cured from anything besides just toggling a
> flag and let it be handled in the main loop.
>
> Edwin

and I third it. Set a global flag of type sigatomic_t and return immediately 

Paul


-- 
Paul Hewlett  Technical Director 
Global Call Center Solutions Ltd, 2nd Floor, Milnerton Mall
Cnr Loxton & Koeberg Roads, 7435 Milnerton
paul at gccs.co.za  www.gccs.co.za
Tel: +27 86 111 3433 Fax: +27 86 111 3520 Cel: +27 76 072 7906
Gizmo: 1 747 659 6171



More information about the asterisk-dev mailing list