do not ignore SIGPIPE
[paraslash.git] / 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);
 }