mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
client: if a child we created was already reaped, assume that it was successful
This commit is contained in:
parent
59659e1db6
commit
6ce7d208f0
1 changed files with 10 additions and 3 deletions
|
|
@ -743,9 +743,16 @@ static int context_autospawn(pa_context *c) {
|
|||
} while (r < 0 && errno == EINTR);
|
||||
|
||||
if (r < 0) {
|
||||
pa_log(_("waitpid(): %s"), pa_cstrerror(errno));
|
||||
pa_context_fail(c, PA_ERR_INTERNAL);
|
||||
goto fail;
|
||||
|
||||
if (errno != ESRCH) {
|
||||
pa_log(_("waitpid(): %s"), pa_cstrerror(errno));
|
||||
pa_context_fail(c, PA_ERR_INTERNAL);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* hmm, something already reaped our child, so we assume
|
||||
* startup worked, even if we cannot know */
|
||||
|
||||
} else if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
|
||||
pa_context_fail(c, PA_ERR_CONNECTIONREFUSED);
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue