2022-08-25 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdservice(8) that could cause a segfault when
	started with a previous instance running.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-08-25 17:16:56 -04:00
parent 77b357925a
commit 9587f4300e
2 changed files with 12 additions and 8 deletions

View File

@ -20909,3 +20909,6 @@
* Added an Online Feed Report to rdcastmanager(1).
2022-08-25 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 3.6.5int3.
2022-08-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdservice(8) that could cause a segfault when
started with a previous instance running.

View File

@ -63,14 +63,6 @@ MainObject::MainObject(QObject *parent)
svc_startup_target=MainObject::TargetAll;
svc_force_system_maintenance=false;
//
// Check for prior instance
//
if(RDGetPids("rdservice").size()>1) {
rda->syslog(LOG_ERR,"prior instance found");
exit(RDApplication::ExitPriorInstance);
}
//
// Open the Database
//
@ -80,6 +72,15 @@ MainObject::MainObject(QObject *parent)
(const char *)err_msg.utf8());
exit(RDApplication::ExitNoDb);
}
//
// Check for prior instance
//
if(RDGetPids("rdservice").size()>1) {
rda->syslog(LOG_ERR,"prior instance found");
exit(RDApplication::ExitPriorInstance);
}
rda->syslog(LOG_DEBUG,"starting up");
//