control-c and threads
Srikanth Mandava
Srikanth.Mandava at cosinecom.com
Thu Dec 18 21:02:31 EST 2003
More information about the Python-list mailing list
Thu Dec 18 21:02:31 EST 2003
- Previous message (by thread): executables
- Next message (by thread): control-c and threads
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi! When a signal handler is registered in the main thread and "control-c" is entered, the child thread is getting the KeyboardInterrupt exception(The documentation says the main thread MUST receive the signal handler function call if handler is registered). In python 2.2.1 the main thread was always called with the sigint signal handler which was registered. In my case the child thread is waiting on stdin using "raw_input" function. This seems to be causing all sorts of strange behavior in the program once the child thread gets the keyboardinterrupt exception and eventually leading to seg fault on a sys exit . Any idea why this is happening in 2.3.1? This scenario worked in 2.2.1. Is this fixed in 2.3.2?. Thanks Srikanth -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20031218/3690e7e0/attachment.html>
- Previous message (by thread): executables
- Next message (by thread): control-c and threads
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list