Skip to content

Commit 1dcce8d

Browse files
committed
cli: Set tokio thread name
I'm doing some tracing with `bpftrace` and it shows `comm` as `tokio-runtime-w`. This ensures it shows `bootc` as one would expect. Signed-off-by: Colin Walters <[email protected]>
1 parent 662cdee commit 1dcce8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/cli/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ fn run() -> Result<()> {
2828
// tokio::task::spawn_blocking to create a new OS thread explicitly.
2929
let runtime = tokio::runtime::Builder::new_current_thread()
3030
.enable_all()
31+
.thread_name("bootc")
3132
.build()
3233
.expect("Failed to build tokio runtime");
3334
// And invoke the async_main

0 commit comments

Comments
 (0)