Fix signal logging.

This commit is contained in:
Jonathan Naylor 2024-08-31 19:52:09 +01:00
parent 6127174cfc
commit 8011768b96
5 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2016-2020 by Jonathan Naylor G4KLX * Copyright (C) 2016-2020,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
@ -110,6 +110,8 @@ int main(int argc, char** argv)
delete gateway; delete gateway;
switch (m_signal) { switch (m_signal) {
case 0:
break;
case 2: case 2:
::LogInfo("DGIdGateway-%s exited on receipt of SIGINT", VERSION); ::LogInfo("DGIdGateway-%s exited on receipt of SIGINT", VERSION);
break; break;

View file

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

View file

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

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2016-2020 by Jonathan Naylor G4KLX * Copyright (C) 2016-2020,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
@ -97,6 +97,8 @@ int main(int argc, char** argv)
delete gateway; delete gateway;
switch (m_signal) { switch (m_signal) {
case 0:
break;
case 2: case 2:
::LogInfo("YSFGateway-%s exited on receipt of SIGINT", VERSION); ::LogInfo("YSFGateway-%s exited on receipt of SIGINT", VERSION);
break; break;

View file

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