Message294149
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. |
|
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 | |
|