Send Signal to PID (sys.kill)
Declaration
sys.kill(pid, signal)
Parameters
- pid
Integer. Process ID. - signal
Integer. Signal number.
Description
Sends a signal to the specified PID.
Examples
-- Force quit the foreground app
sys.kill(app.front_pid(), 9)
Note: uses app.front_pid
.