diff options
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index f8dd440..3841464 100644 --- a/src/database.c +++ b/src/database.c @@ -1935,7 +1935,7 @@ int apk_db_run_script(struct apk_database *db, char *fn, char **argv) execve(fn, argv, environment); exit(127); /* should not get here */ } - waitpid(pid, &status, 0); + while (waitpid(pid, &status, 0) < 0 && errno == EINTR); if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { apk_err(out, "%s: script exited with error %d", basename(fn), WEXITSTATUS(status)); return -1; |