From 5fa8994e71d1f6b66948329296716454d6bea314 Mon Sep 17 00:00:00 2001 From: Benn Snyder Date: Sun, 28 Jan 2024 13:53:58 -0500 Subject: [PATCH] fix: make sure sleep completes before killing descendants --- lib/proc_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/proc_control.cpp b/lib/proc_control.cpp index 05f18ad687..2cbfca9e61 100644 --- a/lib/proc_control.cpp +++ b/lib/proc_control.cpp @@ -234,7 +234,7 @@ void kill_descendants(int child_pid) { if (!any_process_exists(descendants)) { return; } - sleep(1); + boinc_sleep(1); } kill_all(descendants); // kill any processes that might have been created