Ctrl-C handler, how to override?
Bruce Edge
edgebruce at yahoo.com
Wed Oct 2 17:15:03 EDT 2002
More information about the Python-list mailing list
Wed Oct 2 17:15:03 EDT 2002
- Previous message (by thread): Ctrl-C handler, how to override?
- Next message (by thread): Ctrl-C handler, how to override?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
How the @#$!$ do override the SIGINT handler? I can create handlers for other signals, but not for SIGINT: >>> getsignal(SIGINT) <built-in function default_int_handler> >>> def handler(signum, frame): ... print "got signal", signum >>> signal(SIGINT, handler) 1 >>> getsignal(SIGINT) <function handler at 0x81466f4> ...Looks OK so far, but Ctrl-C's still call the default handler: >>> KeyboardInterrupt >>> KeyboardInterrupt Thanks, Bruce.
- Previous message (by thread): Ctrl-C handler, how to override?
- Next message (by thread): Ctrl-C handler, how to override?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list