tests/killdaemons.py
changeset 1373 7e193663b0d6
parent 1372 8d921a12dd31
equal deleted inserted replaced
1371:3b0bcc658eef 1373:7e193663b0d6
    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