Commit fba87d7
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 ac3b2ab commit fba87d7
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 | |
|---|---|---|---|
| |||
3357 | 3357 | | |
3358 | 3358 | | |
3359 | 3359 | | |
| 3360 | + | |
3360 | 3361 | | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
3361 | 3367 | | |
3362 | 3368 | | |
3363 | 3369 | | |
| |||
3374 | 3380 | | |
3375 | 3381 | | |
3376 | 3382 | | |
3377 | | - | |
| 3383 | + | |
| 3384 | + | |
3378 | 3385 | | |
3379 | | - | |
| 3386 | + | |
3380 | 3387 | | |
3381 | 3388 | | |
3382 | 3389 | | |
| |||
3396 | 3403 | | |
3397 | 3404 | | |
3398 | 3405 | | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
3399 | 3416 | | |
3400 | 3417 | | |
3401 | 3418 | | |
3402 | 3419 | | |
3403 | | - | |
| 3420 | + | |
| 3421 | + | |
3404 | 3422 | | |
3405 | | - | |
3406 | | - | |
3407 | | - | |
3408 | | - | |
3409 | | - | |
3410 | | - | |
3411 | 3423 | | |
3412 | 3424 | | |
3413 | 3425 | | |
| |||
0 commit comments