Skip to content

Commit

Permalink
fixup! [LibOS] Delay IPC leader notification until it has 0 connections
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Berger <[email protected]>
  • Loading branch information
stefanberger committed Oct 4, 2023
1 parent c8b04ab commit 7e75781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libos/src/ipc/libos_ipc_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7e75781

Please sign in to comment.