Commit ab8a10a
committed
Fix false shutdown in stdin EOF monitor
The stdin monitor thread set the shutdown flag after a single read call,
regardless of the result. If a parent process wrote to stdin without
closing it, read returned Ok(1) and falsely triggered a graceful
shutdown.
Now the thread loops until actual EOF (Ok(0)) or an error before
signaling shutdown.1 parent bd3b38b commit ab8a10a
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
0 commit comments