connect SIGINT to custom interrupt handler

Nobody nobody at nowhere.com
Sun May 15 22:28:31 EDT 2011


On Sun, 15 May 2011 17:05:57 +0000, Christoph Scheingraber wrote:

> Is it correct anyway to have
> 
> signal.siginterrupt(signal.SIGINT, False)
> 
> in my custom interrupt_handler function

No.

> or should it be outside but after
> signal.signal(signal.SIGINT, interrupt_handler)? 

Yes.





More information about the Python-list mailing list