]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
OpenBSD: don't close std* to avoid problem.
authorEric Leblond <eric@regit.org>
Tue, 22 May 2012 22:40:03 +0000 (00:40 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 23 May 2012 10:26:06 +0000 (12:26 +0200)
src/util-daemon.c

index e8b0890616a25ef3981123635e15de7f19bae212..dad536b8fff1f3b4e1226aadfa023b4f1d854599 100644 (file)
@@ -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)