mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-31 18:40: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,
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user