Commit c2fedea
When a Tcl command running its own event loop (such as vwait or
wait_variable) was active and the user typed input on stdin, the event
loop kept spinning at 100% CPU. The stdin file handler is now removed as
soon as input becomes available.
Also fix gh-139816: an exception raised in a callback no longer stops the
event loop to wait for Enter on a Python built without readline; pending
callbacks keep running until input is actually available on stdin.
(cherry picked from commit 3ffda34)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: mdehoon <mjldehoon@yahoo.com>
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e1dc5f5 commit c2fedea
3 files changed
Lines changed: 30 additions & 9 deletions
File tree
- Misc/NEWS.d/next/Library
- Modules
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3392 | 3392 | | |
3393 | 3393 | | |
3394 | 3394 | | |
| 3395 | + | |
3395 | 3396 | | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
3396 | 3402 | | |
3397 | 3403 | | |
3398 | 3404 | | |
| |||
3409 | 3415 | | |
3410 | 3416 | | |
3411 | 3417 | | |
3412 | | - | |
| 3418 | + | |
| 3419 | + | |
3413 | 3420 | | |
3414 | | - | |
| 3421 | + | |
3415 | 3422 | | |
3416 | 3423 | | |
3417 | 3424 | | |
| |||
3431 | 3438 | | |
3432 | 3439 | | |
3433 | 3440 | | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
3434 | 3451 | | |
3435 | 3452 | | |
3436 | 3453 | | |
3437 | 3454 | | |
3438 | | - | |
| 3455 | + | |
| 3456 | + | |
3439 | 3457 | | |
3440 | | - | |
3441 | | - | |
3442 | | - | |
3443 | | - | |
3444 | | - | |
3445 | | - | |
3446 | 3458 | | |
3447 | 3459 | | |
3448 | 3460 | | |
| |||
0 commit comments