Message160703
Actually, there's another use case for you:
export PYTHONRUNFIRST="import faulthandler; faulthandler.enable()"
application.py
All subprocesses launched by the application will now have faulthandler enabled, *without* modifying the application. Doing this in a shell session means that faulthandler will be enabled for all Python processes you launch.
Obviously, care would need to be taken to ensure PYTHONRUNFIRST is ignored for setuid scripts (and it would respect -E as with any other environment variable). |
|
Date |
User |
Action |
Args |
2012-05-15 09:51:07 | ncoghlan | set | recipients:
+ ncoghlan, pitrou, nedbat, serhiy.storchaka |
2012-05-15 09:51:07 | ncoghlan | set | messageid: <1337075467.81.0.483008987076.issue14803@psf.upfronthosting.co.za> |
2012-05-15 09:51:07 | ncoghlan | link | issue14803 messages |
2012-05-15 09:51:07 | ncoghlan | create | |
|