don't report hangs on stable (#11494)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-05-07 09:35:52 -06:00 committed by GitHub
parent ceab446409
commit e2907983d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -183,6 +183,14 @@ pub fn monitor_main_thread_hangs(
installation_id: Option<String>,
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},