> -----Original Message-----
> From: Stephen Hemminger <step...@networkplumber.org>
> +     sigaction(SIGHUP, NULL, &origaction);
 
Why do we need this ?  Can't be this direct sigaction(SIGHUP, &action, NULL)  
without a below if code? 
Can you please explain how this works. 

> +     if (origaction.sa_handler == SIG_DFL)
> +             sigaction(SIGHUP, &action, NULL);
> 


Other changes looks ok to me.

Regards,
Reshma

Reply via email to