Commit 000dd61
committed
fix(yes): restore SIGPIPE to default handler
Fixes broken pipe handling by unconditionally restoring SIGPIPE to SIG_DFL
at program startup, following the established pattern used in cat, tr, and
tail utilities.
This ensures the process properly terminates with exit code 141 when writing
to closed pipes, rather than ignoring SIGPIPE as Rust does by default.
Related to issue #7252 and PR #9560.1 parent e2925fd commit 000dd61
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
1000 | | - | |
| 1000 | + | |
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6498 | 6498 | | |
6499 | 6499 | | |
6500 | 6500 | | |
6501 | | - | |
| 6501 | + | |
6502 | 6502 | | |
6503 | 6503 | | |
6504 | 6504 | | |
| |||
0 commit comments