diff options
| author | sodiboo <git@sodi.boo> | 2025-07-18 20:14:05 +0200 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-07-18 11:41:17 -0700 |
| commit | 485e667fec27aebc8be8dacfc35c702f276d4c47 (patch) | |
| tree | d64f3b210c51af4b3693ef5948adacdbe8c00970 /src/main.rs | |
| parent | 8f442dee060db7899abbdeb94d9d699920e3a6d5 (diff) | |
| download | niri-485e667fec27aebc8be8dacfc35c702f276d4c47.tar.gz niri-485e667fec27aebc8be8dacfc35c702f276d4c47.tar.bz2 niri-485e667fec27aebc8be8dacfc35c702f276d4c47.zip | |
block signals early: now handled correctly with tracy ondemand
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index f73f25fa..43325a77 100644 --- a/src/main.rs +++ b/src/main.rs @@ -134,6 +134,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { } } + // Needs to be done before starting Tracy, so that it applies to Tracy's threads. + niri::utils::signals::block_early().unwrap(); + // Avoid starting Tracy for the `niri msg` code path since starting/stopping Tracy is a bit // slow. tracy_client::Client::start(); |
