mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-01 19:00:09 +03:00
sending CTRL_BREAK_EVENT on windown
This commit is contained in:
parent
ff64a8b409
commit
b358bc1e24
|
@ -427,7 +427,7 @@ except Exception as e:
|
||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
creationflags=sp.CREATE_NEW_PROCESS_GROUP)
|
creationflags=sp.CREATE_NEW_PROCESS_GROUP)
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
proc.send_signal(signal.CTRL_C_EVENT)
|
proc.send_signal(signal.CTRL_BREAK_EVENT)
|
||||||
else:
|
else:
|
||||||
proc = sp.Popen([sys.executable, '-c', script], stdout=sp.PIPE,
|
proc = sp.Popen([sys.executable, '-c', script], stdout=sp.PIPE,
|
||||||
universal_newlines=True)
|
universal_newlines=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user