Fix stderr messages at startup in DMR2YSF

This commit is contained in:
Andy CA6JAU 2018-07-22 19:53:29 -04:00
parent 725c5724bf
commit fb26e4e344
1 changed files with 4 additions and 2 deletions

View File

@ -160,7 +160,6 @@ int CDMR2YSF::run()
::close(STDIN_FILENO);
::close(STDOUT_FILENO);
::close(STDERR_FILENO);
// If we are currently root...
if (getuid() == 0) {
@ -199,6 +198,9 @@ int CDMR2YSF::run()
return 1;
}
if (m_daemon)
::close(STDERR_FILENO);
m_callsign = m_conf.getCallsign();
m_defsrcid = m_conf.getDMRId();
@ -548,7 +550,7 @@ int CDMR2YSF::run()
m_dmrLastDT = DataType;
}
if (ysfWatch.elapsed() > YSF_FRAME_PER) {
unsigned int ysfFrameType = m_conv.getYSF(m_ysfFrame + 35U);