Nick Coghlan added the comment:

I checked the getsignal docs, and indeed None is the expected return value for 
"signal handler exists, but was not installed from Python". That's accurate 
given the way faulthandler works:

On Linux (Python 3.3.0):

$ python3 -c "import signal; print(signal.getsignal(signal.SIGSEGV))"
0
$ python3 -X faulthandler -c "import signal; 
print(signal.getsignal(signal.SIGSEGV))"
None

So Jeremy's patch looks correct to me - when faulthandler is enabled, we need 
to skip over the signals that have those handlers attached.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18396>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to