Re: A 'shutdown' function in WSGI
Antoine Pitrou <[email protected]> Tue, 21 Feb 2012 14:02:39 +0000 (UTC)
| Newsgroups | gmane.comp.python.web |
|---|---|
| Message-ID | <[email protected]> |
Tarek Ziadé <ziade.tarek@...> writes: > > here's a very simple demo: http://tarek.pastebin.mozilla.org/1489505 > > There are two typos but the effect remains the same since you are locked > before you reach those lines: > - atexit call worker.stop() instead > of worker.join() > - in worker.stop(), it calls worker.join() instead of > worker.join(self) I find your example convincing. I think that's worth fixing in Python (e.g. by offering an atexit() method on Thread objects). Perhaps you can open a bug? Regards Antoine. _______________________________________________ Web-SIG mailing list [email protected] Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org