Message294149
| Author |
serhiy.storchaka |
| Recipients |
Arfrever, DLitz, aliles, amaury.forgeotdarc, asvetlov, christian.heimes, emptysquare, georg.brandl, grahamd, gregory.p.smith, ionelmc, jcea, lemburg, neologix, pitrou, rpcope1, sbt, serhiy.storchaka, socketpair, twouters, vstinner, xupeng, yselivanov |
| Date |
2017年05月22日.14:08:16 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1495462096.27.0.332142814769.issue16500@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
PyOS_AfterFork() is used by one code, but the "before" and "parent" handlers are registered by the other code (likely the code of other library). The author of the program that uses both libraries (the one that uses PyOS_AfterFork() and the one that registers handlers) can notice the warning and report the bug in the first library. I think silently skipping registered handlers would be worse.
Let allow the user to control the behavior by setting the warnings filter. If the corresponding warnings are ignored, nothing happen, if they are errors, the child is exited, otherwise the warning message is output on stderr as for other warnings. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年05月22日 14:08:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, lemburg, twouters, georg.brandl, gregory.p.smith, jcea, amaury.forgeotdarc, pitrou, vstinner, christian.heimes, grahamd, Arfrever, ionelmc, asvetlov, neologix, socketpair, sbt, aliles, yselivanov, DLitz, emptysquare, xupeng, rpcope1 |
| 2017年05月22日 14:08:16 | serhiy.storchaka | set | messageid: <1495462096.27.0.332142814769.issue16500@psf.upfronthosting.co.za> |
| 2017年05月22日 14:08:16 | serhiy.storchaka | link | issue16500 messages |
| 2017年05月22日 14:08:16 | serhiy.storchaka | create |
|