MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / ignore_sigpipe

Function ignore_sigpipe

crates/flowtrace-cli/src/main.rs:285–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283/// instead. No-op on non-Unix targets.
284#[cfg(unix)]
285fn ignore_sigpipe() {
286 // SAFETY: setting a signal disposition before the tokio runtime starts is sound.
287 unsafe {
288 libc::signal(libc::SIGPIPE, libc::SIG_IGN);
289 }
290}
291
292#[cfg(not(unix))]
293fn ignore_sigpipe() {}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…