Repository navigation
Commit 33cd213
authored
fix(stream): a child's pipe must not kill the run that owns it (#42)
A killed child's stdout and stderr can emit `error` after the fact, and a
stream with no error listener throws to the top of the process.
Measured: a 42-cell study died at cell 3 on an unhandled EPIPE, after two cells
had already cost twenty minutes each. `stdin` was handled and reported the
policy that stopped reading; the other two pipes had `resume()` and a data
listener and no error listener at all.
The child's fate already reaches an operator through `health()`, so these
listeners record into the same bounded buffer that explains a dead agent and do
not rethrow. Both launchers get the same treatment, because a launcher's job is
to outlive its agent long enough to publish the meter.1 parent bd72038 commit 33cd213
3 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
288 | 299 | | |
289 | 300 | | |
290 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
| |||
0 commit comments