adspace


Why don’t my signal handlers work ?

Answer Posted / Raj Bindra Singh

There could be several reasons why your signal handlers are not working in Python:
1. The signal handler function was not defined before the signal was registered.
2. The signal handler function is not decorated with `@signal.signal(...)`.
3. The signal was handled by another part of your code or system.
4. The signal was generated after the signal handler function was removed from the signal's list of handlers.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category