Fix signal logging.

This commit is contained in:
Jonathan Naylor 2024-08-31 20:04:32 +01:00
parent 6d42e46285
commit 29397cf65e
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2015-2021 by Jonathan Naylor G4KLX * Copyright (C) 2015-2021,2024 by Jonathan Naylor G4KLX
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -109,11 +109,13 @@ int main(int argc, char** argv)
delete host; delete host;
switch (m_signal) { switch (m_signal) {
case 0:
break;
case 2: case 2:
::LogInfo("DMRGateway-%s exited on receipt of SIGINT", VERSION); ::LogInfo("DMRGateway-%s exited on receipt of SIGINT", VERSION);
break; break;
case 15: case 15:
::LogInfo("MDMRGateway-%s exited on receipt of SIGTERM", VERSION); ::LogInfo("DMRGateway-%s exited on receipt of SIGTERM", VERSION);
break; break;
case 1: case 1:
::LogInfo("DMRGateway-%s is restarting on receipt of SIGHUP", VERSION); ::LogInfo("DMRGateway-%s is restarting on receipt of SIGHUP", VERSION);

View File

@ -19,6 +19,6 @@
#if !defined(VERSION_H) #if !defined(VERSION_H)
#define VERSION_H #define VERSION_H
const char* VERSION = "20240202"; const char* VERSION = "20240831";
#endif #endif