Module rustc_session::config::sigpipe
source · Expand description
NOTE: Keep these constants in sync with library/std/src/sys/unix/mod.rs
!
Constants
- The default value if
#[unix_sigpipe]
is not specified. This resolves toSIG_IGN
inlibrary/std/src/sys/unix/mod.rs
. - Do not touch
SIGPIPE
. Use whatever the parent process uses. - Change
SIGPIPE
toSIG_DFL
so that the process is killed when trying to write to a closed pipe. This is usually the desired behavior for CLI apps that produce textual output that you want to pipe to other programs such ashead -n 1
. - Change
SIGPIPE
toSIG_IGN
so that failed writes results inEPIPE
that are eventually converted toErrorKind::BrokenPipe
.