From 70b795e20a399ce2f7522d6b77a3afea5dc2ee27 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 23 May 2012 00:40:03 +0200 Subject: [PATCH] OpenBSD: don't close std* to avoid problem. --- src/util-daemon.c | 5 ----- 1 file changed, 5 deletions(-) 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)