From: Eric Leblond Date: Tue, 22 May 2012 22:40:03 +0000 (+0200) Subject: OpenBSD: don't close std* to avoid problem. X-Git-Tag: suricata-1.3beta2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b795e20a399ce2f7522d6b77a3afea5dc2ee27;p=thirdparty%2Fsuricata.git OpenBSD: don't close std* to avoid problem. --- diff --git a/src/util-daemon.c b/src/util-daemon.c index e8b0890616..dad536b8ff 100644 --- a/src/util-daemon.c +++ b/src/util-daemon.c @@ -80,11 +80,6 @@ static void WaitForChild (pid_t pid) { * */ static void SetupLogging (void) { - /* Close stdin, stdout, stderr */ - close(0); - close(1); - close(2); - /* Redirect stdin, stdout, stderr to /dev/null */ int fd = open("/dev/null", O_RDWR); if (fd < 0)