2021-07-13 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDCheckExitCode()' that caused spurrious warnings
	to be sent to syslog(3).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-07-13 09:17:58 -04:00
parent cd91364485
commit 2db1d6dda7
2 changed files with 5 additions and 2 deletions

View File

@ -22039,3 +22039,6 @@
an RSS feed is selected.
* Added the feed icon to the 'RSS Feed' column in the record list
display in rdcatch(1).
2021-07-13 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDCheckExitCode()' that caused spurrious warnings
to be sent to syslog(3).

View File

@ -1095,7 +1095,7 @@ QList<pid_t> RDGetPids(const QString &program)
int RDCheckExitCode(const QString &msg,int exit_code)
{
if(exit_code!=0) {
if(exit_code<0) {
rda->syslog(LOG_WARNING,"%s returned non-zero exit code %d [%s]",
msg.toUtf8().constData(),exit_code,strerror(errno));
}
@ -1105,7 +1105,7 @@ int RDCheckExitCode(const QString &msg,int exit_code)
int RDCheckExitCode(RDConfig *config,const QString &msg,int exit_code)
{
if(exit_code!=0) {
if(exit_code<0) {
RDApplication::syslog(config,LOG_WARNING,
"%s returned non-zero exit code %d [%s]",
msg.toUtf8().constData(),exit_code,strerror(errno));