mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-18 09:05:11 -05:00
#10751 Fix os.kill() on Windows by using SIGTERM instead of CTRL_C_EVENT
Fixes #10751.
This commit is contained in:
committed by
Magne Sjaastad
parent
fe3cf9b94a
commit
da923b5731
@@ -91,8 +91,8 @@ class Instance:
|
||||
Kill the process with a given pid.
|
||||
"""
|
||||
if hasattr(signal, "CTRL_C_EVENT"):
|
||||
# windows does not have kill
|
||||
os.kill(pid, signal.CTRL_C_EVENT)
|
||||
# windows - use SIGTERM for process termination
|
||||
os.kill(pid, signal.SIGTERM)
|
||||
else:
|
||||
# linux/unix
|
||||
os.kill(pid, signal.SIGKILL)
|
||||
|
||||
Reference in New Issue
Block a user