Skip to Content

proc_kill

Send a signal to one process of the user cmdop runs as (default term) and wait up to 3 s for it to end. For processes cmdop did not start; a cmdop task is stopped with task_stop. The machine program itself, pid 1 and other users’ processes are refused.

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
pidintegeryes
signal`“term”“int”“hup”
wait_secsintegernoSeconds to wait for the process to end (default 3, at most 30).

Result

NameTypeRequiredMeaning
exitedbooleanyesThe process was gone within wait_secs.
pidintegeryes
signal`“term”“int”“hup”

Examples

{ "name": "proc_kill", "arguments": { "machine": "<machine>", "pid": 0 } }

Limits

The call times out after 40 s (timed_out). Available since version 0.0.1. A refused or failed call returns one of the error codes.