diff options
author | Imre Vadász <imre@vdsz.com> | 2017-04-09 00:15:03 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2017-04-11 22:56:00 +0300 |
commit | ab7d01a983d080f09309c98ecd8c43cebd1ca2b2 (patch) | |
tree | f148d5752aefe79c5452c06dc6c9c5047b54c674 /src | |
parent | d3d980ff497b8678fa54df9190a63f5563366d5d (diff) | |
download | pulseaudio-ab7d01a983d080f09309c98ecd8c43cebd1ca2b2.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/pulse/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c index c39cbe75a..6adfc5a95 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -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; |