server.c: Initialize vss _after_ afs.
authorAndre Noll <maan@systemlinux.org>
Thu, 17 Jan 2008 18:29:23 +0000 (19:29 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 17 Jan 2008 18:29:23 +0000 (19:29 +0100)
This way, afs doesn't inherit the open fds of the senders. This fixes

sender http off

Without this patch, para_audiod wouldn't notice that the http sender
has closed its listening fd because afs still has this fd open.

server.c

index 1b3d724941802e0c1e5494e36c7cf01598a56e5a..8783f8e4569236589dea8e9bc476defd4f044d17 100644 (file)
--- a/server.c
+++ b/server.c
@@ -399,11 +399,11 @@ static unsigned server_init(int argc, char **argv)
        PARA_NOTICE_LOG("initializing audio format handlers\n");
        afh_init();
        PARA_NOTICE_LOG("initializing virtual streaming system\n");
        PARA_NOTICE_LOG("initializing audio format handlers\n");
        afh_init();
        PARA_NOTICE_LOG("initializing virtual streaming system\n");
-       vss_init();
        mmd->server_pid = getpid();
        setup_signal_handling();
        PARA_NOTICE_LOG("initializing the audio file selector\n");
        init_afs();
        mmd->server_pid = getpid();
        setup_signal_handling();
        PARA_NOTICE_LOG("initializing the audio file selector\n");
        init_afs();
+       vss_init();
        mmd_lock();
        /* init network socket */
        PARA_NOTICE_LOG("initializing tcp command socket\n");
        mmd_lock();
        /* init network socket */
        PARA_NOTICE_LOG("initializing tcp command socket\n");