Message160703
| Author |
ncoghlan |
| Recipients |
ncoghlan, nedbat, pitrou, serhiy.storchaka |
| Date |
2012年05月15日.09:51:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337075467.81.0.483008987076.issue14803@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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). |
|
History
|
|---|
| 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 |
|