Use CRITICAL job priority class for long running dispatcher jobs

This commit is contained in:
Martin Willi
2011-05-16 15:24:15 +02:00
parent 1c8f58adb9
commit 14bf2f689d
25 changed files with 54 additions and 50 deletions
+2 -1
View File
@@ -134,7 +134,8 @@ plugin_t *nm_plugin_create()
charon->keep_cap(charon, CAP_DAC_OVERRIDE);
lib->processor->queue_job(lib->processor,
(job_t*)callback_job_create((callback_job_cb_t)run, this, NULL, NULL));
(job_t*)callback_job_create_with_prio((callback_job_cb_t)run,
this, NULL, NULL, JOB_PRIO_CRITICAL));
return &this->public.plugin;
}