Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
config: do not take ECHILD as error from spawn_reap()
  • Loading branch information
perexg committed Apr 23, 2015
1 parent 98464be commit 8cb63d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 8cb63d9

Please sign in to comment.