diff -r 468377312726 -r 7a03181d29a3 bmsd/bms.c --- a/bmsd/bms.c Sat Dec 14 21:04:47 2019 +0100 +++ b/bmsd/bms.c Sun Dec 15 15:08:09 2019 +0100 @@ -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,7 +133,7 @@ while (my_shutdown == FALSE) { - usleep(100000); + usleep(1000000); nodes_check_online(); } if (debug) @@ -217,9 +217,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) {