Commit 0b516f6
authored
fix: Improve determinism for graceful shutdown (#11063)
### Description
My theory is we have a race condition when `child.stop()` is called and
child process exist quickly. We process the SIGINT in this
`tokio::select`. Depending on which branch of the select the branch goes
down, you could get the wrong behavior (KilledExternal instead of
Interrupted).
`biased;` gives us determinism for this situation.
### Testing Instructions
CI
<sub>CLOSES TURBO-4946</sub>1 parent 7e12598 commit 0b516f6
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| 451 | + | |
451 | 452 | | |
452 | 453 | | |
453 | 454 | | |
| |||
0 commit comments