sending CTRL_BREAK_EVENT on windown

This commit is contained in:
Richard Bann 2019-06-18 22:42:37 +02:00
parent ff64a8b409
commit b358bc1e24

View File

@ -427,7 +427,7 @@ except Exception as e:
universal_newlines=True,
creationflags=sp.CREATE_NEW_PROCESS_GROUP)
time.sleep(0.5)
proc.send_signal(signal.CTRL_C_EVENT)
proc.send_signal(signal.CTRL_BREAK_EVENT)
else:
proc = sp.Popen([sys.executable, '-c', script], stdout=sp.PIPE,
universal_newlines=True)