From 20786ba9597d62efbeef87c44870dc19a13e3bb4 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 5 Jun 2006 21:40:10 +0200 Subject: [PATCH] do not ignore SIGPIPE this _might_ solve problems with hanging audiod process. Also, mention the name of the receiver in the task status. --- audiod.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/audiod.c b/audiod.c index f653c4f7..709cdfe1 100644 --- 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); } -- 2.39.5