Message194253
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. |
|
Date |
User |
Action |
Args |
2013-08-03 12:45:44 | ncoghlan | set | recipients:
+ ncoghlan, pitrou, vstinner, larry, jkloth, brian.curtin |
2013-08-03 12:45:44 | ncoghlan | set | messageid: <1375533944.84.0.73911843883.issue18396@psf.upfronthosting.co.za> |
2013-08-03 12:45:44 | ncoghlan | link | issue18396 messages |
2013-08-03 12:45:44 | ncoghlan | create | |
|