bpo-40826: Add _PyOS_InterruptOccurred(tstate) function (GH-20599)
my_fgets() now calls _PyOS_InterruptOccurred(tstate) to check for pending signals, rather calling PyOS_InterruptOccurred(). my_fgets() is called with the GIL released, whereas PyOS_InterruptOccurred() must be called with the GIL held. test_repl: use text=True and avoid SuppressCrashReport in test_multiline_string_parsing(). Fix my_fgets() on Windows: fgets(fp) does crash if fileno(fp) is closed.
V
Victor Stinner committed
fa7ab6aa0f9a4f695e5525db5a113cd21fa93787
Parent: 18a9024
Committed by GitHub <noreply@github.com>
on 6/3/2020, 12:39:59 PM