Stop a process on a QNX target
process_stopStops a running process, such as a hung program or service you want to restart, by sending a signal and waiting for it to exit. Only processes whose executable lives below /tmp or /data are allowed.
Instructions
Stop a process that qnx-mcp did not start (for runs use run_stop), for example a hung program or a service you want to restart. Allowed only when its executable lives below /tmp or /data, checked on the target at call time: the executable in /proc//exefile (which also covers services started with a relative path such as ./statusd) and the same path with symlinks resolved. The process is identified by pid and start time; the start time, critical flag and executable are checked again right before each signal, and nothing is sent if they changed. Never pid 1, procnto, a critical process, qnx-mcp's runner, or anything in /proc/boot, /bin, /sbin, /usr or /system; refusals are process_not_allowed errors that name the rule. Sends signal (default TERM), waits up to grace_s for the process to exit and, with kill_after_grace, then sends SIGKILL. The result says what was stopped and whether it exited.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"pid": "<pid>"
},
"name": "process_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process id, from processes() | |
| signal | No | Signal to send first | TERM |
| target | Yes | Target name such as 'tb' (lowercase letters, digits, '-', '_'); must be inside the server allowlist | |
| grace_s | No | Seconds to wait for the process to exit | |
| kill_after_grace | No | Send SIGKILL if it is still running after grace_s |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||