Skip to content

Conversation

@michallenc
Copy link
Contributor

Summary

This command looks through the currently running processes and kills the those that match the selection criteria. This way system can send signal to processes by name and without knowing the IDs. The implementation match the one of kill and pidof.

Example (kill application hello):
pkill -15 hello

The command can be turned off by NSH_DISABLE_PKILL option and depends on FS_PROCFS.

Impact

New command.

@xiaoxiang781216
Copy link
Contributor

@michallenc could you rebase your change to the last master, the ci break was fixed.

@cederom
Copy link
Contributor

cederom commented Sep 19, 2024

Why not killall too ? :-)

@acassis
Copy link
Contributor

acassis commented Sep 19, 2024

Why not killall too ? :-)

Interesting the differences: https://unix.stackexchange.com/questions/91527/whats-the-difference-between-pkill-and-killall

@michallenc
Copy link
Contributor Author

Why not killall too ? :-)

Maybe next :)

@michallenc
Copy link
Contributor Author

It seems the CI build failure is caused by me. I will look into it tomorrow.

This command looks through the currently running processes and kills
the those that match the selection criteria. This way system can send
signal to processes by name and without knowing the IDs.

Example (kill application hello):
	pkill -15 hello

The command can be turned off by NSH_DISABLE_PKILL option and depends
on FS_PROCFS.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
@xiaoxiang781216 xiaoxiang781216 merged commit f81a094 into apache:master Sep 23, 2024
@michallenc michallenc deleted the pkill_implementation branch June 27, 2025 07:03
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.

5 participants