]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5519 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Jun 2013 00:43:08 +0000 (19:43 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 18 Jun 2013 00:43:24 +0000 (19:43 -0500)
src/switch.c

index 745c292d7383c9326c914b049118586c9e83632d..a4ba10b86899ae4a987a7dde999908e1854eb446 100644 (file)
@@ -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