[Tutor] Q1: Any way for script to intercept a HUP signal ?

Eric Brunson brunson at brunson.com
Fri Nov 16 22:15:11 CET 2007


dave selby wrote:
> Is there a way for a Python script to intercept a HUP signal sent to it ?
>
> Cheers
>
> Dave
>
>   
Yes, using a signal handler:

http://docs.python.org/lib/module-signal.html

Let us know if you need clarification on anything after you read the 
section.



More information about the Tutor mailing list