Expand description
NOTE: Keep these constants in sync with library/std/src/sys/pal/unix/mod.rs!
Constantsยง
- DEFAULT
- The default value if -Zon-broken-pipe=...is not specified. This resolves toSIG_IGNinlibrary/std/src/sys/pal/unix/mod.rs.
- INHERIT
- Do not touch SIGPIPE. Use whatever the parent process uses.
- SIG_DFL
- Change SIGPIPEtoSIG_DFLso 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.
- SIG_IGN
- Change SIGPIPEtoSIG_IGNso that failed writes results inEPIPEthat are eventually converted toErrorKind::BrokenPipe.