]> arthur.barton.de Git - netdata.git/commitdiff
prevent 100% cpu when there are no plugins running
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 10 Apr 2015 23:47:37 +0000 (02:47 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 10 Apr 2015 23:47:37 +0000 (02:47 +0300)
src/main.c

index da4b7f6961a637610dabe9619cdacc3ca6e697d2..6b11ab6b7853a60a82f7e96674c06e57211b0729 100755 (executable)
@@ -338,7 +338,10 @@ int main(int argc, char **argv)
        // the main process - the web server listener
        // this never ends
        // socket_listen_main(NULL);
-       while(1) process_childs(1);
+       while(1) {
+               process_childs(1);
+               sleep(1);
+       }
 
        exit(0);
 }