Commit 6ac5ec1
authored
NonBlockingInputStreamImpl was exiting its reading thread permanently
when the underlying stream returned -1. On terminal fds, a -1 from
FileInputStream.read() (native read() returning 0 bytes) is not
permanent EOF and can occur when VMIN=0. The thread now stays alive
and can service subsequent reads, matching NonBlockingReaderImpl
behavior.
1 parent 1ef5bed commit 6ac5ec1
2 files changed
Lines changed: 23 additions & 5 deletions
File tree
- terminal/src
- main/java/org/jline/utils
- test/java/org/jline/utils
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | 220 | | |
226 | 221 | | |
227 | 222 | | |
| |||
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
329 | 352 | | |
0 commit comments