[issue33087] No reliable clean shutdown method

2018-03-19 Thread Brett Cannon
Change by Brett Cannon : -- type: behavior -> enhancement versions: +Python 3.8 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ _

[issue33087] No reliable clean shutdown method

2018-03-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: To my knowledge, there is no safe way to do this for other threads for a reason. If you make all your worker threads daemons, then they will terminate with the main thread, but they won't perform cleanup actions. If you don't make them daemons, any "clean exi

[issue33087] No reliable clean shutdown method

2018-03-16 Thread Elliot Jenner
New submission from Elliot Jenner : Ptyhon lacks a reliable clean shutdown method. sys.exit(), which should be this method, does not reliably perform this function as it merely terminates the thread it is called from (duplicating the functionality of thread.exit()), exit() and quit() are not s