starter: Initialize thread pool so kernel events are consumed.

This commit is contained in:
Tobias Brunner
2012-05-15 08:55:19 +02:00
parent 9e25007646
commit d3590016e9
+9
View File
@@ -46,6 +46,11 @@
#include "cmp.h"
#include "interfaces.h"
/**
* Number of threads in the thread pool, if not specified in config.
*/
#define DEFAULT_THREADS 4
/**
* Return codes defined by Linux Standard Base Core Specification 3.1
* in section 20.2. Init Script Actions
@@ -475,6 +480,10 @@ int main (int argc, char **argv)
{
exit(LSB_RC_FAILURE);
}
/* we need threads to read events from the kernel */
lib->processor->set_threads(lib->processor,
lib->settings->get_int(lib->settings, "starter.threads",
DEFAULT_THREADS));
for (;;)
{