Skip to content

add kill command and kill unit test - #11

Merged
caomengxuan666 merged 5 commits into
unixwin:mainfrom
arookieofc:main
Feb 22, 2026
Merged

caomengxuan666 merged 5 commits into
unixwin:mainfrom
arookieofc:main

Conversation

@arookieofc

Copy link
Copy Markdown
Member

No description provided.

@caomengxuan666

Copy link
Copy Markdown
Member

Hi @a-rookie-of-C-language

Thank you for your PR! I've reviewed your implementation of the kill command, and I must say it's more comprehensive than our current implementation:

✅ Your implementation includes:

  • Full -s/--signal option support (ours was marked as TODO)
  • Additional options: -9, -15, -L/--table
  • Different signal handling (graceful termination with WM_CLOSE for SIGTERM)
  • Better error handling and process status checks

I would like to merge your improvements, but there are conflicts because we already have a basic kill implementation in the main branch.

Could you please do the following:

  1. Sync with our latest code:
git remote add upstream https://github.com/caomengxuan666/WinuxCmd.git
git fetch upstream
git checkout main
git rebase upstream/main
git push origin main --force

2.Resolve the conflicts in kill.cpp (your implementation is better, so please keep your changes but adapt to our codebase structure)

3.Build and test to ensure everything works:

4.Push the resolved changes to your PR branch

Once the conflicts are resolved and tests pass, I'll be happy to merge your PR! Your implementation is definitely an improvement over our current one.

Let me know if you need any help with the rebase or conflict resolution!

Thanks for your contribution!

@caomengxuan666
caomengxuan666 merged commit 882d438 into unixwin:main Feb 22, 2026
4 checks passed
caomengxuan666 added a commit that referenced this pull request Mar 24, 2026
feat(commands)Rewrite kill command and kill unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants