From 5babfb0f1eb123a37f2082b2dc6044dac6bf1f57 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 22 Dec 2016 10:52:26 -0500 Subject: [PATCH] fixed #724 --- DaemonLinux.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/DaemonLinux.cpp b/DaemonLinux.cpp index edd15f07..07e27e9d 100644 --- a/DaemonLinux.cpp +++ b/DaemonLinux.cpp @@ -76,12 +76,10 @@ namespace i2p return false; } -#if !defined(__OpenBSD__) // point std{in,out,err} descriptors to /dev/null - stdin = freopen("/dev/null", "r", stdin); - stdout = freopen("/dev/null", "w", stdout); - stderr = freopen("/dev/null", "w", stderr); -#endif + freopen("/dev/null", "r", stdin); + freopen("/dev/null", "w", stdout); + freopen("/dev/null", "w", stderr); } // set proc limits