Fix stderr messages in daemon mode

This commit is contained in:
Andy CA6JAU
2018-07-24 00:29:05 -04:00
parent c9505b827d
commit e97006d7c9

View File

@@ -210,7 +210,6 @@ int CMMDVMHost::run()
::close(STDIN_FILENO);
::close(STDOUT_FILENO);
::close(STDERR_FILENO);
#if !defined(HD44780) && !defined(OLED) && !defined(_OPENWRT)
// If we are currently root...
@@ -254,6 +253,8 @@ int CMMDVMHost::run()
return 1;
}
if (m_daemon)
::close(STDERR_FILENO);
LogInfo(HEADER1);
LogInfo(HEADER2);