From: Andre Date: Mon, 5 Jun 2006 19:40:10 +0000 (+0200) Subject: do not ignore SIGPIPE X-Git-Tag: v0.2.14~78 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=20786ba9597d62efbeef87c44870dc19a13e3bb4 do not ignore SIGPIPE this _might_ solve problems with hanging audiod process. Also, mention the name of the receiver in the task status. --- 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); }