Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions libdd-crashtracker/src/collector/crash_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,6 @@ fn handle_posix_signal_impl(
return Ok(());
}

// Mark this process as a collector for the preload logger
#[cfg(target_os = "linux")]
{
super::api::mark_preload_logger_collector();
}

// If this code hits a stack overflow, then it will result in a segfault. That situation is
// protected by the one-time guard.

Expand All @@ -264,6 +258,11 @@ fn handle_posix_signal_impl(
return Ok(());
}

#[cfg(target_os = "linux")]
{
super::api::mark_preload_logger_collector();
}

// Suppress SIGPIPE and defer SIGCHLD during crash handling.
// SIGCHLD is block-only because SIG_IGN changes child reaping semantics (waitpid/ECHILD),
// which can interfere with receiver/collector process cleanup.
Expand Down
Loading