Skip to content

[Feature]: Why hasn't the process-killing functionality been implemented for Windows? #248

Open

Description

@EliuGit

Is your feature request related to a problem?

Why hasn't the process-killing functionality been implemented for Windows?

Describe the solution you'd like

No response

Additional context

No response

Activity

  1. added
    enhancement
    on Nov 5, 2026
  2. pranshuparmar commented on Nov 5, 2026

    @pranshuparmar
    Owner

    @EliuGit Thanks for the feature request. It was built for Unix first because the actions rely on POSIX signals, which have no direct Windows equivalents. That doesn’t mean Windows can’t have its own implementation. It was just left behind.

    Kill maps cleanly to TerminateProcess. Suspend/resume can use NtSuspendProcess/NtResumeProcess, and renice maps to Windows priority classes. Graceful termination can be skipped.

    I can take it up for the next milestone release. PRs against staging are also welcome. Any implementation should keep the same safety rules as the Unix side.

  3. CJstate commented on Nov 7, 2026

    @CJstate
    Contributor

    Implemented in #249 against staging, using the mappings suggested here: Kill/Terminate → TerminateProcess, Pause/Resume → NtSuspendProcess/NtResumeProcess, Renice → Windows priority classes (never REALTIME). Graceful termination is skipped as suggested, and the Unix safety rules are kept: an already-exited process is rejected the same way signalling a reaped PID fails on Unix, and the shared identity check before any action applies unchanged. Renice is lossy by nature (Windows has no nice scale) — the −20…19 ladder maps to the five non-realtime classes.

  4. added this to the 0.3.5 milestone on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions