{"action":"opened","issue":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/1199","repository_url":"https://api.github.com/repos/benoitc/gunicorn","labels_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1199/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1199/comments","events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1199/events","html_url":"https://github.com/benoitc/gunicorn/issues/1199","id":131217754,"number":1199,"title":"gunicorn old process should exit when new process finish initialization","user":{"login":"kuangchanglang","id":3366328,"avatar_url":"https://avatars.githubusercontent.com/u/3366328?v=3","gravatar_id":"","url":"https://api.github.com/users/kuangchanglang","html_url":"https://github.com/kuangchanglang","followers_url":"https://api.github.com/users/kuangchanglang/followers","following_url":"https://api.github.com/users/kuangchanglang/following{/other_user}","gists_url":"https://api.github.com/users/kuangchanglang/gists{/gist_id}","starred_url":"https://api.github.com/users/kuangchanglang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuangchanglang/subscriptions","organizations_url":"https://api.github.com/users/kuangchanglang/orgs","repos_url":"https://api.github.com/users/kuangchanglang/repos","events_url":"https://api.github.com/users/kuangchanglang/events{/privacy}","received_events_url":"https://api.github.com/users/kuangchanglang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-04T02:15:11Z","updated_at":"2016-02-04T02:15:11Z","closed_at":null,"body":"I use \"kill -HUP\" to restart gunicorn, and I see from source code that old processes exit immediately when starting new processes. But my application take a few seconds to initialize. At this time all requests get stuck. \r\n\r\nIs there any way to solve this problem? If I can write a hook to tell master when it should switch old processes to new processes?"}}