2022-09-06 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-09-06 16:54:11 -04:00
parent 637a256247
commit 2b99b1707d
2 changed files with 11 additions and 8 deletions

View File

@@ -23258,3 +23258,6 @@
information to syslog. information to syslog.
2022-09-06 Fred Gleason <fredg@paravelsystems.com> 2022-09-06 Fred Gleason <fredg@paravelsystems.com>
* Added an Online Feed Report to rdcastmanager(1). * Added an Online Feed Report to rdcastmanager(1).
2022-09-06 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_startup_target=MainObject::TargetAll;
svc_force_system_maintenance=false; 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 // Open the Database
// //
@@ -82,6 +74,14 @@ MainObject::MainObject(QObject *parent)
} }
rda->syslog(LOG_DEBUG,"starting up"); rda->syslog(LOG_DEBUG,"starting up");
//
// Check for prior instance
//
if(RDGetPids("rdservice").size()>1) {
rda->syslog(LOG_ERR,"prior instance found");
exit(RDApplication::ExitPriorInstance);
}
// //
// Ensure that we are 'root' // Ensure that we are 'root'
// //