Install common handler for various signals.
All existing signal handlers are saved in the _trfSignalHandlerDict dictionary to allow for them to be restored.
- Parameters
-
handler | Common signal handler for all signals concerned. |
- Returns
- None
Definition at line 28 of file trfSignal.py.
29 for s
in _defaultSignalList:
31 msg.debug(
"Setting signalhandler for %s to %s", s, handler)
32 _savedSignalHandlerDict[s] = signal.signal(getattr(signal, s), handler)
33 except Exception
as e:
34 msg.error(
"Unable to attach custom signal handler to %s: %s", s, e)