summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index c67e703..51b99bf 100644
--- a/lib.c
+++ b/lib.c
@@ -2742,7 +2742,10 @@ uc_system(uc_vm_t *vm, size_t nargs)
}
}
- if (waitpid(cld, &rc, 0) < 0) {
+ while (waitpid(cld, &rc, 0) < 0) {
+ if (errno == EINTR)
+ continue;
+
fn = "waitpid";
goto fail;
}