[issue39792] Two Ctrl+C is required to terminate when a pipe is blocking

2020-03-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39792] Two Ctrl+C is required to terminate when a pipe is blocking

2020-02-28 Thread Masahiro Sakai
New submission from Masahiro Sakai : I noticed that two Ctrl+C instead of one are required to terminate following program on macOS and Linux. I guess that the first Ctrl+C is ignored inside one of the finalizers. import os def main(): r, w = os.pipe() f_w = os.fdopen(w, "w")