diff options
author | Pino Toscano <pino@debian.org> | 2012-03-19 12:42:15 +0000 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-03-28 16:23:52 +0530 |
commit | 8499afc36f71342ec6118dc81adb85bc1b3f4aea (patch) | |
tree | dbdd7ae969ccc841a625a6194640bf20a3cc8b38 | |
parent | 8ea6b0585e802490d160814b61d0165b875e0a84 (diff) |
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.
-rw-r--r-- | src/pulse/context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c index e03d88ca..5bd3448b 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; |