prevent 100% cpu when there are no plugins running
Costa Tsaousis (ktsaou) committed
Apr 11, 2015 at 02:47 UTC
f2d6c09004afe07c926a84c70f24ccbd74f8799b
1 file changed
+4
-1
src/main.c
+4
-1
@@ -338,7 +338,10 @@ int main(int argc, char **argv)
338
// the main process - the web server listener
339
// this never ends
340
// socket_listen_main(NULL);
341
- while(1) process_childs(1);
341
+ while(1) {
342
+ process_childs(1);
343
+ sleep(1);
344
+ }
345
346
exit(0);
347
}