Message104459
> In BaseServer, a threading.Event is used in shutdown, so it can block
> until server_forever is finished (after checking __serving). Since the
> SIGTERM interrupts the select system call, the event set is never
> reached, and shutdown hangs waiting on the event.
This precise use case is already fixed (in SVN trunk and in the 2.6
branch) since the select() loop is now wrapped in a try..finally.
I just ran your test case and killing -TERM works ok. |
|
Date |
User |
Action |
Args |
2010-04-28 20:06:19 | pitrou | set | recipients:
+ pitrou, gregory.p.smith, spiv, exarkun, nvetoshkin, neologix, Yaniv.Aknin, bda |
2010-04-28 20:06:17 | pitrou | link | issue7978 messages |
2010-04-28 20:06:17 | pitrou | create | |
|