From 29397cf65ec89c37c0866b2d8af75e22564e9624 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sat, 31 Aug 2024 20:04:32 +0100 Subject: [PATCH] Fix signal logging. --- DMRGateway.cpp | 6 ++++-- Version.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/DMRGateway.cpp b/DMRGateway.cpp index dcfee28..24a12e6 100644 --- a/DMRGateway.cpp +++ b/DMRGateway.cpp @@ -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 * 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; switch (m_signal) { + case 0: + break; case 2: ::LogInfo("DMRGateway-%s exited on receipt of SIGINT", VERSION); break; case 15: - ::LogInfo("MDMRGateway-%s exited on receipt of SIGTERM", VERSION); + ::LogInfo("DMRGateway-%s exited on receipt of SIGTERM", VERSION); break; case 1: ::LogInfo("DMRGateway-%s is restarting on receipt of SIGHUP", VERSION); diff --git a/Version.h b/Version.h index babe5a0..ba5f154 100644 --- a/Version.h +++ b/Version.h @@ -19,6 +19,6 @@ #if !defined(VERSION_H) #define VERSION_H -const char* VERSION = "20240202"; +const char* VERSION = "20240831"; #endif