]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Merge branch 't/t0004'
authorAndre Noll <maan@systemlinux.org>
Sun, 6 Nov 2011 11:06:25 +0000 (12:06 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 6 Nov 2011 11:07:47 +0000 (12:07 +0100)
1  2 
NEWS
server.c

diff --cc NEWS
index 3a7027298f5a20ee00793554b2be89a997f331c3,6db7225350f014f80e3f0ad831fe60b93d2777b9..f50ffa3bc633ee62add70d02549f04f941e91c5c
--- 1/NEWS
--- 2/NEWS
+++ b/NEWS
@@@ -9,8 -9,6 +9,10 @@@
        - Shared memory areas are no longer restricted to 64K. We now
          detect the maximal size of a shared memory area at runtime.
        - cleanup of the internal uptime API.
 +      - para_server prefaults the mmapped audio file to avoid
 +        delays on slow media.
++      - A new test for the test-suite that exercises the
++        communication between  para_server and para_audiod.
  
  --------------------------------------
  0.4.8 (2011-08-19) "nested assignment"
diff --cc server.c
index 120fea258a64fdd1bf91e1436f22ee5d7e00a7c0,1e45eb3616a858091f98f42079d94251963a43ed..0cfac60722d825fddb4714dfba651eb8265e770a
+++ b/server.c
@@@ -512,17 -503,18 +507,18 @@@ static void server_init(int argc, char 
         */
        para_sigaction(SIGUSR1, SIG_IGN);
        /*
-        * We have to install a SIGCHLD handler before the afs process is being
-        * forked off. Otherwise, para_server does not notice if afs dies before
-        * the SIGCHLD handler has been installed by init_signal_task() below.
+        * We have to block SIGCHLD before the afs process is being forked off.
+        * Otherwise, para_server does not notice if afs dies before the
+        * SIGCHLD handler has been installed for the parent process by
+        * init_signal_task() below.
         */
-       para_sigaction(SIGCHLD, tmp_sigchld_handler);
+       para_block_signal(SIGCHLD);
        PARA_NOTICE_LOG("initializing the audio file selector\n");
 -      afs_socket = init_afs();
 +      afs_socket = init_afs(argc, argv);
        init_signal_task();
+       para_unblock_signal(SIGCHLD);
        PARA_NOTICE_LOG("initializing virtual streaming system\n");
        init_vss_task(afs_socket);
-       init_server_command_task(argc, argv);
        PARA_NOTICE_LOG("server init complete\n");
  }