Message4645

Author marc
Recipients draghuram, marc, pekka.klarck
Date 2009-05-06.12:22:34
SpamBayes Score 3.1195683e-05
Marked as misclassified No
Message-id <1241612554.43.0.415920612734.issue1313@psf.upfronthosting.co.za>
In-reply-to
Content
I'm currently using the following code as workaround:

import signal

def intHandler(signum, frame):
    print "user pressed ctrl-c"
    raise KeyboardInterrupt()

# Set the signal handler
signal.signal(signal.SIGINT, intHandler)

This installs a special handler for the interrupt signal, which raises a
KeyboardInterrupt.
History
Date User Action Args
2009-05-06 12:22:34marcsetmessageid: <1241612554.43.0.415920612734.issue1313@psf.upfronthosting.co.za>
2009-05-06 12:22:34marcsetrecipients: + marc, draghuram, pekka.klarck
2009-05-06 12:22:34marclinkissue1313 messages
2009-05-06 12:22:34marccreate