Skip to content

Commit 2fcaf80

Browse files
committed
core: Fix pending post_up by launching separate threads
1 parent 227b7ee commit 2fcaf80

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

dune-core/src/cfg.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -791,20 +791,20 @@ impl Node {
791791
.join();
792792
});
793793

794-
let _ = thread::scope(|scope| {
795-
// Launch post_up commands, if any.
796-
if let Some(post_ups) = &pinned.post_up {
797-
let _span = span!(Level::INFO, "pinned");
798-
info!("Launching <{}> post_up commands", post_ups.len());
799-
post_ups.iter().for_each(|post_up| {
794+
// Launch post_up commands, if any.
795+
if let Some(post_ups) = &pinned.post_up {
796+
let _span = span!(Level::INFO, "pinned");
797+
info!("Launching <{}> post_up commands", post_ups.len());
798+
post_ups.iter().for_each(|post_up| {
799+
let _ = thread::scope(|scope| {
800800
let _ = scope
801801
.spawn(move || {
802-
_sync_exec(&post_up);
802+
_async_exec(&post_up);
803803
})
804804
.join();
805805
});
806-
}
807-
});
806+
});
807+
}
808808
}
809809
});
810810
}

0 commit comments

Comments
 (0)