Gio.Subprocess.prototype.force_exit
function force_exit(): void { // Gjs wrapper for g_subprocess_force_exit() }
Use an operating-system specific method to attempt an immediate, forceful termination of the process. There is no mechanism to determine whether or not the request itself was successful; however, you can use Gio.Subprocess.prototype.wait to monitor the status of the process after calling this function.
On Unix, this function sends %SIGKILL.
Since 2.40