[pulseaudio-commits] src/pulse

Arun Raghavan arun at kemper.freedesktop.org
Wed Mar 28 03:55:14 PDT 2012


 src/pulse/context.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 8499afc36f71342ec6118dc81adb85bc1b3f4aea
Author: Pino Toscano <pino at debian.org>
Date:   Mon Mar 19 12:42:15 2012 +0000

    libpulse: Cope with systems not implementing SA_NOCLDWAIT
    
    Even though SA_NOCLDWAIT is a POSIX mandatory flag the Hurd doesn't
    implement it. So let's only check for it if it's defined.

diff --git a/src/pulse/context.c b/src/pulse/context.c
index e03d88c..5bd3448 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -660,7 +660,11 @@ static int context_autospawn(pa_context *c) {
         goto fail;
     }
 
+#ifdef SA_NOCLDWAIT
     if ((sa.sa_flags & SA_NOCLDWAIT) || sa.sa_handler == SIG_IGN) {
+#else
+    if (sa.sa_handler == SIG_IGN) {
+#endif
         pa_log_debug("Process disabled waitpid(), cannot autospawn.");
         pa_context_fail(c, PA_ERR_CONNECTIONREFUSED);
         goto fail;



More information about the pulseaudio-commits mailing list