tests/killdaemons.py
branchstable
changeset 1372 8d921a12dd31
parent 1359 e23422941bae
equal deleted inserted replaced
1370:d6cab997a43e 1372:8d921a12dd31
    41             if r == WAIT_OBJECT_0:
    41             if r == WAIT_OBJECT_0:
    42                 pass # process is terminated
    42                 pass # process is terminated
    43             elif r == WAIT_TIMEOUT:
    43             elif r == WAIT_TIMEOUT:
    44                 logfn('# Daemon process %d is stuck')
    44                 logfn('# Daemon process %d is stuck')
    45             else:
    45             else:
    46                 check(r) # any error
    46                 _check(r) # any error
    47         except: #re-raises
    47         except: #re-raises
    48             ctypes.windll.kernel32.CloseHandle(handle) # no _check, keep error
    48             ctypes.windll.kernel32.CloseHandle(handle) # no _check, keep error
    49             raise
    49             raise
    50         _check(ctypes.windll.kernel32.CloseHandle(handle))
    50         _check(ctypes.windll.kernel32.CloseHandle(handle))
    51 
    51