Skip to content

Windows: report real per-process state instead of always 'Running' #74

Description

@rezdm

get_all_processes hardcodes state_char = 'R', so every process shows as Running and the running-count is meaningless on Windows. SystemProcessInformation (see the enumeration issue) carries each thread's state and wait reason; derive a per-process state from them — e.g. Running if any thread is Running, otherwise Waiting/Sleeping, and Suspended when all threads are in a suspended wait. Depends on the NtQuerySystemInformation enumeration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwindowsWindows platform backend

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions