mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-06 20:51:29 +08:00
in python 3.5 the select is blocking when waiting for it which prevent quick exit on SIGTERM. The problem is described: https://www.python.org/dev/peps/pep-0475/#backward-compatibility This change fix it by listening for signal event on the worker pipe. Once an event is triggered it will forcefully wake up the select and return. fix #1256