mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-10 09:01:17 +02:00
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:
parent
637a256247
commit
2b99b1707d
@ -23258,3 +23258,6 @@
|
||||
information to syslog.
|
||||
2022-09-06 Fred Gleason <fredg@paravelsystems.com>
|
||||
* 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.
|
||||
|
@ -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
|
||||
//
|
||||
@ -82,6 +74,14 @@ MainObject::MainObject(QObject *parent)
|
||||
}
|
||||
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'
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user