This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Vadim Markovtsev
Recipients BreamoreBoy, Glenn.Maynard, Vadim Markovtsev, christian.heimes, grahamd, neologix, pitrou, tarek, tim.peters, vstinner, zvezdan
Date 2015-03-18.08:50:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426668625.24.0.450696118355.issue14073@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that there must be some way to join the threads before exiting, with a callback or anything else. Currently, my thread pool implementation has to monkey patch sys.exit and register SIGINT handler to shutdown itself and avoid the hangup (100+ LoC to cover all possible exceptions). I am working on a big framework and demanding from users to call "thread pool shutdown" function before exit would be yet another thing they must remember and just impossible in some cases. It would ruin the whole abstraction. Python is not C, you know.
History
Date User Action Args
2015-03-18 08:50:25Vadim Markovtsevsetrecipients: + Vadim Markovtsev, tim.peters, pitrou, vstinner, christian.heimes, tarek, grahamd, zvezdan, neologix, BreamoreBoy, Glenn.Maynard
2015-03-18 08:50:25Vadim Markovtsevsetmessageid: <1426668625.24.0.450696118355.issue14073@psf.upfronthosting.co.za>
2015-03-18 08:50:25Vadim Markovtsevlinkissue14073 messages
2015-03-18 08:50:24Vadim Markovtsevcreate