MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / get_exit_code

Method get_exit_code

pydevd_attach_to_process/winappdbg/process.py:443–459  ·  view source on GitHub ↗

@rtype: int @return: Process exit code, or C{STILL_ACTIVE} if it's still alive. @warning: If a process returns C{STILL_ACTIVE} as it's exit code, you may not be able to determine if it's active or not with this method. Use L{is_alive} to check if th

(self)

Source from the content-addressed store, hash-verified

441 return False
442
443 def get_exit_code(self):
444 """
445 @rtype: int
446 @return: Process exit code, or C{STILL_ACTIVE} if it's still alive.
447
448 @warning: If a process returns C{STILL_ACTIVE} as it's exit code,
449 you may not be able to determine if it's active or not with this
450 method. Use L{is_alive} to check if the process is still active.
451 Alternatively you can call L{get_handle} to get the handle object
452 and then L{ProcessHandle.wait} on it to wait until the process
453 finishes running.
454 """
455 if win32.PROCESS_ALL_ACCESS == win32.PROCESS_ALL_ACCESS_VISTA:
456 dwAccess = win32.PROCESS_QUERY_LIMITED_INFORMATION
457 else:
458 dwAccess = win32.PROCESS_QUERY_INFORMATION
459 return win32.GetExitCodeProcess(self.get_handle(dwAccess))
460
461 # ------------------------------------------------------------------------------
462

Callers

nothing calls this directly

Calls 1

get_handleMethod · 0.95

Tested by

no test coverage detected