wait max 60 seconds for gracefull reload

This commit is contained in:
roberto@debian32
2011-08-02 20:36:16 +02:00
parent 1890290d05
commit 42e6a7d024
+4
View File
@@ -511,6 +511,10 @@ void grace_them_all(int signum) {
if (uwsgi.reload_mercy > 0) {
uwsgi.master_mercy = time(NULL) + uwsgi.reload_mercy;
}
else {
// wait max 60 seconds for graceful reload
uwsgi.master_mercy = time(NULL) + 60;
}
#ifdef UWSGI_SPOOLER
if (uwsgi.spool_dir && uwsgi.shared->spooler_pid > 0) {