Call init_afs() _before_ setting up signal handlers.
authorAndre Noll <maan@systemlinux.org>
Tue, 15 Apr 2008 04:49:22 +0000 (06:49 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 15 Apr 2008 04:49:22 +0000 (06:49 +0200)
afs has its own signal handling.

server.c

index 6ca93e7..9156876 100644 (file)
--- a/server.c
+++ b/server.c
@@ -493,9 +493,9 @@ static void server_init(int argc, char **argv)
                daemon_init();
        PARA_NOTICE_LOG("initializing audio format handlers\n");
        afh_init();
-       init_signal_task();
        PARA_NOTICE_LOG("initializing the audio file selector\n");
        afs_socket = init_afs();
+       init_signal_task();
        PARA_NOTICE_LOG("initializing virtual streaming system\n");
        init_vss_task(afs_socket);
        init_server_command_task(argc, argv);