mirror of
https://github.com/ShaYmez/MMDVM_CM.git
synced 2025-05-29 04:22:26 -04:00
Fix stderr messages at startup in DMR2YSF
This commit is contained in:
parent
725c5724bf
commit
fb26e4e344
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user