mk90.commands
Command kill
Mark background slot 1 or 2 as finished.
Synopsis
kill pidOrdinary invocation: foreground child, PID 3; the shell waits. Not an allowed pipe producer.
Parameters
| Parameter | Meaning |
|---|---|
pid | 1 or 2; the slot must have been allocated. |
Description
Sets the slot state to DONE and its recorded exit code to 130. It is a cooperative job-control operation, not a POSIX signal. A subsequent RUN may reuse the slot.
Examples
run count
kill 1
wait 1Limits and side effects
- PID 0 and PID 3 are not valid targets. There are no signal numbers, process groups or asynchronous kill commands typed while the shell is blocked in a foreground application.
Status and diagnostics
Success is status 0. Relevant status codes: 8. See the diagnostic reference.
See also
run · ps · wait · Shell syntax