spooler task are now managed asap on startup

This commit is contained in:
roberto@debian32
2011-06-25 08:13:15 +02:00
parent b624bd2d35
commit e6914b91e1
+2 -1
View File
@@ -152,7 +152,6 @@ void spooler() {
for (;;) {
sleep(uwsgi.shared->spooler_frequency);
if (chdir(uwsgi.spool_dir)) {
uwsgi_error("chdir()");
@@ -234,6 +233,8 @@ void spooler() {
uwsgi_error("opendir()");
}
sleep(uwsgi.shared->spooler_frequency);
}
}