New submission from Masahiro Sakai <[email protected]>:
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")
f_w.buffer.write(b"a" * 65536)
f_w.buffer.write(b"b")
main()
----
----------
components: IO
messages: 362964
nosy: msakai
priority: normal
severity: normal
status: open
title: Two Ctrl+C is required to terminate when a pipe is blocking
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39792>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com