replace_sigint_handler
-
emlib.misc.replace_sigint_handler(handler)[source]
Replace current SIGINT hanler with the given one, return the old one
- Parameters:
handler (Callable[[None], None]) – the new handler. A handler is a function taking no
parameters and returning nothing
- Returns:
the old handler
Styled using the Piccolo Theme