From 0e52fe56899ef2ff13291ebeb3a75e36538552e3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 17 Jun 2013 19:43:08 -0500 Subject: [PATCH] FS-5519 --resolve --- src/switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch.c b/src/switch.c index 745c292d73..a4ba10b868 100644 --- a/src/switch.c +++ b/src/switch.c @@ -336,7 +336,6 @@ static void daemonize(int *fds) if (fds) { setsid(); } - return; /* redirect std* to null */ fd = open("/dev/null", O_RDONLY); if (fd != 0) { @@ -355,6 +354,7 @@ static void daemonize(int *fds) dup2(fd, 2); close(fd); } + return; } #endif