mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-20 15:41:23 +01:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user