replace_sigint_handler

emlib.misc.replace_sigint_handler(handler)[source]

Replace current SIGINT hanler with the given one, return the old one

Parameters:
  • handler – the new handler. A handler is a function taking no

  • nothing (parameters and returning)

Returns:

the old handler