Signal handling and threads problem
alwyns at prism.co.za
Tue Dec 11 06:03:34 EST 2001
I'm experiencing the problem that on Solaris the main thread doesn't
seem to get the signal.
I've compiled Python with: --with-signal-module and --with-threads.
The signal in question is SIGINT.
Now from the source code it appears that it is hacked to work by the
module checking whether
the pid that receives the signal is that of the main thread or not.
This do not seem to work. I wonder
if it has anything to do with the fact that as far as I know the
threads have the same pid as the
main program on Solaris (not sure about this).
Anyone shed any light on this please?
More information about the Python-list