Subprocess.getTermSig

int getTermSig()

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.Subprocess.wait and unless gio.subprocess.Subprocess.getIfSignaled returned true.

Returns

the signal causing termination