Delay service exit until new configuration is loaded

This commit is contained in:
z3APA3A 2016-06-06 18:01:51 +03:00
parent 84664a203b
commit 05f39246bf

View File

@ -685,7 +685,7 @@ int MODULEMAINFUNC (int argc, char** argv){
memset(&defparam.sincr, 0, sizeof(defparam.sincr));
if(isudp) while(!srv.fds.events)usleep(SLEEPTIME);
}
while(!conf.timetoexit && conf.version <= srv.version) usleep(SLEEPTIME);
if(!srv.silent) srv.logfunc(&defparam, (unsigned char *)"Exiting thread");
if(fp) fclose(fp);