mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-03-10 07:03:55 +01:00
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:
parent
8f428cf86b
commit
9f73f66101
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue