os.windows.process
¶
Module Contents¶
Functions¶
|
Retrieve process exit code. |
|
Wait until list of object are in signaled state. |
- os.windows.process.process_exit_code(handle: int) int | None ¶
Retrieve process exit code.
Note that the method used ensure the process stays in a waitable state
- Parameters:
handle – process handle
- Returns:
the exit code if process is finished or None otherwise
- Raise:
WindowsError in case the handle is invalid
- os.windows.process.wait_for_objects(object_list: list[int], timeout: int = 0, wait_for_all: bool = False) int | None ¶
Wait until list of object are in signaled state.
- Parameters:
object_list – a list of handles
timeout – maximum waiting time in seconds. If 0 then maximum waiting time is set to infinity
wait_for_all – if True wait for all object to be signaled. If False wait for one object to be signaled
- Returns:
index in the object list of the signaled object or None in case of timeout
- Raise:
WindowsError