lower the scheduler priority of the spooler process

This commit is contained in:
roberto@sirius
2010-02-14 11:20:13 +01:00
parent c06a1626ed
commit 4ee9b36579
+4
View File
@@ -125,6 +125,10 @@ void spooler (PyObject * uwsgi_module) {
exit (1);
}
// asked by Marco Beri
fprintf(stderr,"lowering spooler priority to %d\n", PRIO_MAX);
setpriority(PRIO_PROCESS, getpid(), PRIO_MAX);
for (;;) {
sdir = opendir (".");
if (sdir) {