do not ignore SIGPIPE
authorAndre <maan@p133.(none)>
Mon, 5 Jun 2006 19:40:10 +0000 (21:40 +0200)
committerAndre <maan@p133.(none)>
Mon, 5 Jun 2006 19:40:10 +0000 (21:40 +0200)
this _might_ solve problems with hanging audiod process. Also, mention the
name of the receiver in the task status.

audiod.c

index f653c4f..709cdfe 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -454,7 +454,8 @@ static void setup_signal_handling(void)
        para_install_sighandler(SIGTERM);
        para_install_sighandler(SIGCHLD);
        para_install_sighandler(SIGHUP);
-       signal(SIGPIPE, SIG_IGN);
+       para_install_sighandler(SIGPIPE);
+//     signal(SIGPIPE, SIG_IGN);
 }
 
 static void audiod_status_dump(void)
@@ -789,7 +790,7 @@ static void open_receiver(int format)
        rn->task.post_select = a->receiver->post_select;
        rn->task.event_handler = rn_event_handler;
        rn->task.flags = 0;
-       sprintf(rn->task.status, "receiver node");
+       sprintf(rn->task.status, "%s receiver node", rn->receiver->name);
        register_task(&rn->task);
 }