()
| 283 | /// instead. No-op on non-Unix targets. |
| 284 | #[cfg(unix)] |
| 285 | fn 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))] |
| 293 | fn ignore_sigpipe() {} |
no outgoing calls
no test coverage detected
searching dependent graphs…