--- a/bmsd/bms.c Fri Oct 18 13:20:35 2019 +0200 +++ b/bmsd/bms.c Fri May 01 16:37:31 2020 +0200 @@ -32,7 +32,7 @@ int my_shutdown = FALSE; int debug = FALSE; -static pid_t pgrp, mypid; +static pid_t /*pgrp, */mypid; char *Private_Path = NULL; /* Users data path */ extern sys_config Config; @@ -133,8 +133,10 @@ while (my_shutdown == FALSE) { - usleep(100000); + usleep(4000000); nodes_check_online(); + usleep(1000000); + ispindel_mysql_check(); } if (debug) fprintf(stdout, "[main] Exit from main loop\n"); @@ -217,9 +219,9 @@ * if the child were to open a terminal, it would become * associated with that terminal as its control terminal. */ - if ((pgrp = setpgid(0, 0)) == -1) { - syslog(LOG_NOTICE, "setpgpid failed"); - } +// if ((pgrp = setpgid(0, 0)) == -1) { +// syslog(LOG_NOTICE, "setpgid failed: %s", strerror(errno)); +// } frk = fork(); switch (frk) {