New submission from Eryk Sun:

On Unix, waiting on an instance of subprocess.Popen in the main thread is 
interruptible by Ctrl+C. On Windows, it currently calls 
_winapi.WaitForSingleObject, which isn't interruptible. It should instead call 
_winapi.WaitForMultipleObjects, which automatically adds the SIGINT event 
object from _PyOS_SigintEvent() when called from the main thread.

components: Library (Lib), Windows
messages: 276544
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Use _winapi.WaitForMultipleObjects in Popen.wait()
type: enhancement
versions: Python 3.6, Python 3.7

Python tracker <>
Python-bugs-list mailing list

Reply via email to