mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
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.
This commit is contained in:
parent
8ea6b0585e
commit
8499afc36f
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue