Gio.Subprocess.prototype.get_term_sig
function get_term_sig(): Number(gint) {
// Gjs wrapper for g_subprocess_get_term_sig()
}
Get the signal number that caused the subprocess to terminate, given that it terminated due to a signal.
This is equivalent to the system WTERMSIG macro.
It is an error to call this function before Gio.Subprocess.prototype.wait and unless Gio.Subprocess.prototype.get_if_signaled returned true.
Since 2.40
- Returns
the signal causing termination