config: do not take ECHILD as error from spawn_reap()

This commit is contained in:
Jaroslav Kysela 2015-04-23 16:40:51 +02:00
parent 98464be592
commit 8cb63d919b

View file

@ -1217,6 +1217,8 @@ dobackup(const char *oldver)
} else {
while ((code = spawn_reap(pid, errtxt, sizeof(errtxt))) == -EAGAIN)
usleep(20000);
if (code == -ECHILD)
code = 0;
}
if (code) {