Add Windows support for kill by process ID --from winuxcmd project

Open
#45 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust

Research direction

Start by reviewing the existing handling of the kill command and the Windows process-management APIs available for terminating a process by PID. Check each proposed invocation, including numeric and named signals, and document the limits of the implementation; done means the listed commands work on Windows without implying full POSIX signal support.

Written by the indexing model from the issue text.

Description

C-feature

Summary

kill is currently not shipped in Coreutils for Windows because Windows does not provide POSIX signals. However, Windows can still terminate processes by process ID through native process APIs.

This issue proposes adding a Windows-specific kill implementation that supports PID-based process termination while clearly documenting that it is not full POSIX signal support.

Proposed behavior

Support commands such as:

kill <PID>
kill -9 <PID>
kill -KILL <PID>
kill -TERM <PID>
kill -s KILL <PID>
kill --signal=TERM <PID>
kill --list
Dominant language
Rust
Stars
5.2k
Forks
107
Avg merge
2d 19h
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/coreutils

All issues in microsoft/coreutils

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.