You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Why hasn't the process-killing functionality been implemented for Windows? #248
@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.
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.
Activity
pranshuparmar commentedon Nov 5, 2026
@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.
CJstate commentedon Nov 7, 2026
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.