+ ParseArguments(argc, argv);
+
+ // signal handler
+ //TODO: Make this work
+ /*
+ int signals[] = {SIGINT, SIGSEGV, SIGTERM};
+ for (int i = 0; i < sizeof(signals)/sizeof(int); ++i)
+ {
+ signal(signals[i], SignalHandler);
+ }
+ */
+ Sensor_Spawn();
+
+ // run request thread in the main thread
+ FCGI_RequestLoop(NULL);
+
+ // Join the dark side, Luke
+ // *cough*
+ // Join the sensor threads
+ Sensor_Join();
+ Cleanup();