Skip to content

Commit

Permalink
Fix stderr messages in daemon mode
Browse files Browse the repository at this point in the history
  • Loading branch information
juribeparada committed Jul 24, 2018
1 parent c9505b8 commit e97006d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MMDVMHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down Expand Up @@ -254,6 +253,8 @@ int CMMDVMHost::run()
return 1;
}

if (m_daemon)
::close(STDERR_FILENO);

LogInfo(HEADER1);
LogInfo(HEADER2);
Expand Down

0 comments on commit e97006d

Please sign in to comment.