Commit 1287e2f
committed
fix(epipe): catch EPIPE in escript mode too
The Burrito wrapper fix handles EPIPE for Burrito binaries, but
escripts don't go through the wrapper. Add a rescue in CLI.run/1
that catches the ErlangError (:terminated) from the dead
standard_io group leader and halts with flush:false to exit
cleanly without printing the 'Writer crashed (epipe)' stack trace.1 parent 1f09f9a commit 1287e2f
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
170 | 179 | | |
171 | 180 | | |
172 | 181 | | |
| |||
0 commit comments