* @file main.c
* @purpose main and its helper functions, signal handling and cleanup functions
*/
-#include "common.h"
-
-
-// --- Standard headers --- //
-#include <signal.h> // for signal handling
// --- Custom headers --- //
-
-#include "log.h"
+#include "common.h"
#include "options.h"
#include "sensor.h"
+// --- Standard headers --- //
+#include <signal.h> // for signal handling
+
// --- Variable definitions --- //
Options g_options; // options passed to program through command line arguments
Sensor g_sensors[NUMSENSORS]; // sensors array
}
// run request thread in the main thread
- Query_Request(NULL); //TODO: Replace with FastCGI code
+ FCGI_RequestLoop(NULL);
return 0;
}