Skip to content

Commit 8d28016

Browse files
authored
Run SM with cancel_on_panic (#6054)
1 parent fb0b55d commit 8d28016

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/task/src/runtime_registry.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ impl RuntimeRegistry {
3939
.write()
4040
.map_err(|_| RegistryAccessError::Poisoned)?;
4141
Ok(guard
42-
.get_or_insert_with(|| Arc::new(ShutdownManager::new_without_signals()))
42+
.get_or_insert_with(|| {
43+
Arc::new(ShutdownManager::new_without_signals().with_cancel_on_panic())
44+
})
4345
.clone())
4446
}
4547

0 commit comments

Comments
 (0)