From 0dc646755921a05961442f5f11faf5ce7007f558 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 6 Apr 2018 16:56:26 +0930 Subject: [PATCH] ptr_valid: fix spurious SIGINT under lldb on MacOS (Taken from PR for lightning) Patch-from: https://github.com/conanoc Signed-off-by: Rusty Russell --- ccan/ptr_valid/ptr_valid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccan/ptr_valid/ptr_valid.c b/ccan/ptr_valid/ptr_valid.c index dc61dd27..79319840 100644 --- a/ccan/ptr_valid/ptr_valid.c +++ b/ccan/ptr_valid/ptr_valid.c @@ -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; } -- 2.39.2