diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-03 20:26:08 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-03 20:26:08 +0300 |
| commit | 4888cfe1b3ad8e83935dc7b061bdbdade5d3ebfd (patch) | |
| tree | 17e3821a271fb3bc5d0e4f1c6efc2d045fdc1a30 /corebinutils/kill | |
| parent | 37d57c63e6348d2879e08df455760f9c46f19c14 (diff) | |
| download | Project-Tick-4888cfe1b3ad8e83935dc7b061bdbdade5d3ebfd.tar.gz Project-Tick-4888cfe1b3ad8e83935dc7b061bdbdade5d3ebfd.zip | |
kill: make the implementation usable as sh builtin
Allow kill.c to be compiled directly into sh under SHELL.
- rename main to killcmd in builtin builds
- route diagnostics through bltin/error helpers under SHELL
- keep standalone CLI behaviour unchanged
- support %job operands by dispatching to killjob() when builtins run
- reject shell-only job specs in standalone mode with an explicit error
This keeps one kill implementation for both standalone and shell builtin
use while preserving Linux/POSIX signal handling semantics.
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'corebinutils/kill')
0 files changed, 0 insertions, 0 deletions
