[pulseaudio-commits] r1097 - in /trunk/src: pulse/context.c pulsecore/core-util.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Jul 17 04:26:31 PDT 2006
Author: ossman
Date: Mon Jul 17 13:26:29 2006
New Revision: 1097
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1097&root=pulseaudio&view=rev
Log:
Restore SIGPIPE warning when the platform doesn't have MSG_NOSIGNAL.
Modified:
trunk/src/pulse/context.c
trunk/src/pulsecore/core-util.c
Modified: trunk/src/pulse/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/context.c?rev=1097&root=pulseaudio&r1=1096&r2=1097&view=diff
==============================================================================
--- trunk/src/pulse/context.c (original)
+++ trunk/src/pulse/context.c Mon Jul 17 13:26:29 2006
@@ -132,6 +132,12 @@
memset(&c->spawn_api, 0, sizeof(c->spawn_api));
c->do_autospawn = 0;
+#ifndef MSG_NOSIGNAL
+#ifdef SIGPIPE
+ pa_check_signal_is_blocked(SIGPIPE);
+#endif
+#endif
+
c->conf = pa_client_conf_new();
pa_client_conf_load(c->conf, NULL);
#ifdef HAVE_X11
Modified: trunk/src/pulsecore/core-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core-util.c?rev=1097&root=pulseaudio&r1=1096&r2=1097&view=diff
==============================================================================
--- trunk/src/pulsecore/core-util.c (original)
+++ trunk/src/pulsecore/core-util.c Mon Jul 17 13:26:29 2006
@@ -78,6 +78,11 @@
#include "core-util.h"
+/* Not all platforms have this */
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif
+
#ifndef OS_IS_WIN32
#define PA_RUNTIME_PATH_PREFIX "/tmp/pulse-"
#define PATH_SEP '/'
More information about the pulseaudio-commits
mailing list