From 7e757816dc35f97d5b0fee67572b9f1be4bb02cb Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Wed, 4 Oct 2023 09:39:53 -0400 Subject: [PATCH] fixup! [LibOS] Delay IPC leader notification until it has 0 connections Signed-off-by: Stefan Berger --- libos/src/ipc/libos_ipc_worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libos/src/ipc/libos_ipc_worker.c b/libos/src/ipc/libos_ipc_worker.c index 43d648b83b..eff9ee87f6 100644 --- a/libos/src/ipc/libos_ipc_worker.c +++ b/libos/src/ipc/libos_ipc_worker.c @@ -432,7 +432,7 @@ int init_ipc_worker(void) { void terminate_ipc_worker(void) { if (g_process_ipc_ids.self_vmid == STARTING_VMID) { - uint64_t timeout_us = 100*1000; + uint64_t timeout_us = 100 * TIME_US_IN_MS; PalEventClear(leader_notifier); while (__atomic_load_n(&g_ipc_connections_cnt, __ATOMIC_ACQUIRE) > 0) {