mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
context: Check for errno == ECHILD instead of ESRCH after failed waitpid().
When the specified pid no longer exists as a child of the process (since it was already reaped by the SIGCHLD handler), errno is set to ECHILD, not to ESRCH.
This commit is contained in:
parent
d3d980ff49
commit
ab7d01a983
1 changed files with 1 additions and 1 deletions
|
|
@ -753,7 +753,7 @@ static int context_autospawn(pa_context *c) {
|
|||
|
||||
if (r < 0) {
|
||||
|
||||
if (errno != ESRCH) {
|
||||
if (errno != ECHILD) {
|
||||
pa_log(_("waitpid(): %s"), pa_cstrerror(errno));
|
||||
pa_context_fail(c, PA_ERR_INTERNAL);
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue