2023-06-29 Fred Gleason <fredg@paravelsystems.com>

* Added a 'RDCoreApplication::isUniqueProcess()' static method.
	* Added processuniqueness checks to caed(8), rdairplay(1),
	rdrepld(8), rdrssd(8), rdservice(8), rdvairplayd(8), ripcd(8) and
	rdalsaconfig(8).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-06-29 14:54:48 -04:00
parent 6e5c13fc38
commit c92b4dc703
55 changed files with 134 additions and 87 deletions

View File

@@ -2,7 +2,7 @@
//
// Command Line Operations for RDLogManager
//
// (C) Copyright 2012-2022 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2012-2023 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -47,7 +47,7 @@ int RunReportOperation(int argc,char *argv[],const QString &rptname,
rda=static_cast<RDApplication *>(new RDCoreApplication("RDLogManager",
"rdlogmanager",RDLOGMANAGER_USAGE,true,NULL));
if(!rda->open(&err_msg,NULL,true)) {
if(!rda->open(&err_msg,NULL,true,false)) {
fprintf(stderr,"rdlogmanager: %s\n",err_msg.toUtf8().constData());
exit(RDApplication::ExitNoDb);
}

View File

@@ -2,7 +2,7 @@
//
// Generate/merge logs from the command line.
//
// (C) Copyright 2018-2022 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2018-2023 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -46,7 +46,7 @@ LogObject::LogObject(const QString &svcname,int start_offset,
//
rda=static_cast<RDApplication *>(new RDCoreApplication("RDLogManager",
"rdlogmanager","",true,NULL));
if(!rda->open(&err_msg,NULL,false)) {
if(!rda->open(&err_msg,NULL,false,false)) {
fprintf(stderr,"rdlogmanager: %s\n",err_msg.toUtf8().constData());
exit(RDApplication::ExitNoDb);
}

View File

@@ -54,7 +54,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
rda=new RDApplication("RDLogManager","rdlogmanager",RDLOGMANAGER_USAGE,true,
this);
if(!rda->open(&err_msg,NULL,true)) {
if(!rda->open(&err_msg,NULL,true,false)) {
QMessageBox::critical(this,"RDLogManager - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);
}