summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-05-25 23:56:38 +0200
committerLennart Poettering <lennart@poettering.net>2009-05-26 00:02:29 +0200
commit759a9d0cc56c074567e0048fc0a1058bc179a101 (patch)
tree8c6947084d77c27a25e7d233c70f61de8deec0c1 /src/utils
parentebce3185ef8064ab42106d2fd24aba21a159905d (diff)
downloadpulseaudio-panda-759a9d0cc56c074567e0048fc0a1058bc179a101.tar.gz
pulseaudio-panda-759a9d0cc56c074567e0048fc0a1058bc179a101.tar.bz2
pulseaudio-panda-759a9d0cc56c074567e0048fc0a1058bc179a101.zip
core-util: introduce pa_disable_sigpipe()
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/pabrowse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/pabrowse.c b/src/utils/pabrowse.c
index 288d44a9..a6487b88 100644
--- a/src/utils/pabrowse.c
+++ b/src/utils/pabrowse.c
@@ -30,6 +30,8 @@
#include <pulse/pulseaudio.h>
#include <pulse/browser.h>
+#include <pulsecore/core-util.h>
+
static void exit_signal_callback(pa_mainloop_api*m, pa_signal_event *e, int sig, void *userdata) {
fprintf(stderr, "Got signal, exiting\n");
m->quit(m, 0);
@@ -127,7 +129,7 @@ int main(int argc, char *argv[]) {
assert(r == 0);
pa_signal_new(SIGINT, exit_signal_callback, NULL);
pa_signal_new(SIGTERM, exit_signal_callback, NULL);
- signal(SIGPIPE, SIG_IGN);
+ pa_disable_sigpipe();
if (!(browser = pa_browser_new_full(pa_mainloop_get_api(mainloop), PA_BROWSE_FOR_SERVERS|PA_BROWSE_FOR_SINKS|PA_BROWSE_FOR_SOURCES, &s))) {
fprintf(stderr, "pa_browse_new_full(): %s\n", s);