Commit 52bdfcc
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 f2402cb commit 52bdfcc
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 | |
|---|---|---|---|
| |||
3433 | 3433 | | |
3434 | 3434 | | |
3435 | 3435 | | |
| 3436 | + | |
3436 | 3437 | | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
3437 | 3443 | | |
3438 | 3444 | | |
3439 | 3445 | | |
| |||
3450 | 3456 | | |
3451 | 3457 | | |
3452 | 3458 | | |
3453 | | - | |
| 3459 | + | |
| 3460 | + | |
3454 | 3461 | | |
3455 | | - | |
| 3462 | + | |
3456 | 3463 | | |
3457 | 3464 | | |
3458 | 3465 | | |
| |||
3472 | 3479 | | |
3473 | 3480 | | |
3474 | 3481 | | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
3475 | 3492 | | |
3476 | 3493 | | |
3477 | 3494 | | |
3478 | 3495 | | |
3479 | | - | |
| 3496 | + | |
| 3497 | + | |
3480 | 3498 | | |
3481 | | - | |
3482 | | - | |
3483 | | - | |
3484 | | - | |
3485 | | - | |
3486 | | - | |
3487 | 3499 | | |
3488 | 3500 | | |
3489 | 3501 | | |
| |||
0 commit comments