mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
tests: killdaemons.py for checks reason when getting no process handle
This commit is contained in:
parent
700d7ff53a
commit
ad307f52ea
@ -21,7 +21,7 @@ if os.name =='nt':
|
||||
handle = ctypes.windll.kernel32.OpenProcess(
|
||||
PROCESS_TERMINATE|SYNCHRONIZE, False, pid)
|
||||
if handle == 0:
|
||||
# TODO: call _check(0, expected) to check if "process not found"
|
||||
_check(0, 87) # err 87 when process not found
|
||||
return # process not found, already finished
|
||||
try:
|
||||
_check(ctypes.windll.kernel32.TerminateProcess(handle, -1), 5)
|
||||
|
Loading…
Reference in New Issue
Block a user