Commit 0dc64675 authored by Rusty Russell's avatar Rusty Russell

ptr_valid: fix spurious SIGINT under lldb on MacOS

(Taken from PR for lightning)

Patch-from: https://github.com/conanocSigned-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent a8f32342
......@@ -161,7 +161,7 @@ static void finish_child(struct ptr_valid_batch *batch)
{
close(batch->to_child);
close(batch->from_child);
waitpid(batch->child_pid, NULL, 0);
while (waitpid(batch->child_pid, NULL, 0) < 0 && errno == EINTR);
batch->child_pid = 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment