From: Anthony Minessale Date: Tue, 18 Jun 2013 00:43:08 +0000 (-0500) Subject: FS-5519 --resolve X-Git-Tag: v1.4.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ac4e77384efa81f3cdc7c477a44a470986a3728;p=thirdparty%2Ffreeswitch.git FS-5519 --resolve --- 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