Message211159
> A signal should not remove the trace function.
And a signal should be traced.
The attached patch postpones all signals except SIGINT while the trace function is being invoked, and thus the signal is traced after returning from this function.
My previous test with a little improvement has been attached too and outputs now, with this patch:
tracing foo
tracing handler
Got ZeroDivisionError.
trace function: <function trace at 0x7fada2776c90>
I did not test the patch against WITH_THREAD not being defined. |
|
Date |
User |
Action |
Args |
2014-02-13 15:28:18 | xdegaye | set | recipients:
+ xdegaye, vstinner |
2014-02-13 15:28:18 | xdegaye | set | messageid: <1392305298.15.0.344316690935.issue20601@psf.upfronthosting.co.za> |
2014-02-13 15:28:18 | xdegaye | link | issue20601 messages |
2014-02-13 15:28:18 | xdegaye | create | |
|