Fix SIGHUP treatment to loop/restart as intended

There's a do...while(m_signal==1) intended to allow a SIGHUP (1) to
cause a restart, rather than an exit.  But the current code doesn't
reset m_killed, so it does instantiate a new DMRGateway object, but
immediately exits.
This commit is contained in:
Neil Weisenfeld 2024-08-27 10:17:24 -04:00 committed by Neil Weisenfeld
parent 8f428cf86b
commit 9f73f66101

View file

@ -101,6 +101,7 @@ int main(int argc, char** argv)
do {
m_signal = 0;
m_killed = false; // restart, don't exit, if looping from SIGHUP (1)
CDMRGateway* host = new CDMRGateway(std::string(iniFile));
ret = host->run();