From 9834934a57f2bb0ebef48a25c294b5f01995dc07 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 09:49:36 -0600 Subject: [PATCH] don't report hangs on stable (cherry-pick #11494) (#11497) Cherry-picked don't report hangs on stable (#11494) Release Notes: - N/A Co-authored-by: Conrad Irwin --- crates/zed/src/reliability.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/zed/src/reliability.rs b/crates/zed/src/reliability.rs index b277235e6b65c43cd5e180679489cb8065e8cc0d..9f5e6420c72f7100406b60ea9fa858127fbb1323 100644 --- a/crates/zed/src/reliability.rs +++ b/crates/zed/src/reliability.rs @@ -183,6 +183,14 @@ pub fn monitor_main_thread_hangs( installation_id: Option, cx: &AppContext, ) { + // This is too noisy to ship to stable for now. + if !matches!( + ReleaseChannel::global(cx), + ReleaseChannel::Dev | ReleaseChannel::Nightly | ReleaseChannel::Preview + ) { + return; + } + use nix::sys::signal::{ sigaction, SaFlags, SigAction, SigHandler, SigSet, Signal::{self, SIGUSR2},