mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-27 14:12:34 +02:00
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:
parent
77b357925a
commit
9587f4300e
@ -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.
|
||||
|
@ -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");
|
||||
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user