2019-04-01 Fred Gleason <fredg@paravelsystems.com>

* Fixed a race in rdservice(8) that could cause a deadlock
	when starting on a system with many dropboxes configured.
	* Fixed a bug in rdadmin(1) that caused a spurious error message
	when started on a system with the 'rivendell' service inactive.
This commit is contained in:
Fred Gleason
2019-04-01 14:48:17 -04:00
parent dee0f5d168
commit a7cfb26a92
3 changed files with 8 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ MainObject::MainObject(QObject *parent)
:QObject(parent)
{
QString err_msg;
RDApplication::ErrorType err_type=RDApplication::ErrorOk;
//
// Open the syslog
@@ -73,7 +74,7 @@ MainObject::MainObject(QObject *parent)
// Open the Database
//
rda=new RDApplication("rdservice","rdservice","\n\n",this);
if(!rda->open(&err_msg)) {
if(!rda->open(&err_msg,&err_type,false)) {
syslog(LOG_ERR,"unable to open database [%s]",
(const char *)err_msg.utf8());
exit(2);