Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Jul 25, 2024
1 parent 5a55937 commit c36de8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ where
spawn_prof_thread(profile_path);
}

let mut sigint = tokio::signal::unix::signal(SignalKind::interrupt()).unwrap();
let mut sigterm = tokio::signal::unix::signal(SignalKind::terminate()).unwrap();

let future_with_shutdown = async move {
let shutdown = CancellationToken::new();
let mut fut = pin!(f(shutdown.clone()));

let mut sigint = tokio::signal::unix::signal(SignalKind::interrupt()).unwrap();
let mut sigterm = tokio::signal::unix::signal(SignalKind::terminate()).unwrap();

tokio::select! {
biased;

Expand Down

0 comments on commit c36de8a

Please sign in to comment.