mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-11 22:27:44 +02:00
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:
parent
cd91364485
commit
2db1d6dda7
@ -22039,3 +22039,6 @@
|
|||||||
an RSS feed is selected.
|
an RSS feed is selected.
|
||||||
* Added the feed icon to the 'RSS Feed' column in the record list
|
* Added the feed icon to the 'RSS Feed' column in the record list
|
||||||
display in rdcatch(1).
|
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).
|
||||||
|
@ -1095,7 +1095,7 @@ QList<pid_t> RDGetPids(const QString &program)
|
|||||||
|
|
||||||
int RDCheckExitCode(const QString &msg,int exit_code)
|
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]",
|
rda->syslog(LOG_WARNING,"%s returned non-zero exit code %d [%s]",
|
||||||
msg.toUtf8().constData(),exit_code,strerror(errno));
|
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)
|
int RDCheckExitCode(RDConfig *config,const QString &msg,int exit_code)
|
||||||
{
|
{
|
||||||
if(exit_code!=0) {
|
if(exit_code<0) {
|
||||||
RDApplication::syslog(config,LOG_WARNING,
|
RDApplication::syslog(config,LOG_WARNING,
|
||||||
"%s returned non-zero exit code %d [%s]",
|
"%s returned non-zero exit code %d [%s]",
|
||||||
msg.toUtf8().constData(),exit_code,strerror(errno));
|
msg.toUtf8().constData(),exit_code,strerror(errno));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user