Commit c1631da
fix(sort): always install SIGINT handler to ensure temp dir cleanup
The `should_install_signal_handler()` check added in 87c332c skipped
handler installation on systems with many open FDs, meaning Ctrl+C left
`/tmp/uutils_sortXXXX` directories behind with no cleanup at all.
Now the handler is always attempted; `ctrlc::set_handler` failing
naturally is sufficient. Failure is treated as non-fatal.
Closes: #117281 parent 47c17df commit c1631da
1 file changed
Lines changed: 5 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 47 | | |
58 | 48 | | |
59 | 49 | | |
| |||
140 | 130 | | |
141 | 131 | | |
142 | 132 | | |
143 | | - | |
144 | | - | |
145 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
146 | 137 | | |
147 | 138 | | |
148 | 139 | | |
| |||
0 commit comments