2021-06-01 Fred Gleason <fredg@paravelsystems.com>

* Added 'RDCheckExitCode()' functions in 'lib/rdconf.[cpp|h].

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-06-01 10:53:48 -04:00
parent 8b19d28c17
commit fb50414428
4 changed files with 30 additions and 6 deletions

View File

@@ -310,12 +310,8 @@ void RDCartDialog::editorData()
delete q;
if(fork()==0) {
int exit_code=system((cmd+" &").toUtf8());
if(exit_code!=0) {
rda->syslog(LOG_WARNING,
"editor subprocess returned non-zero exit code %d [%s]",
exit_code,strerror(errno));
}
RDCheckExitCode("RDCartDialog editor subprocess",
system((cmd+" &").toUtf8()));
exit(0);
}
}