Subprocess.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 Subprocess.wait and unless Subprocess.getIfSignaled returned TRUE.

class Subprocess
int
getTermSig
()

Return Value

Type: int

the signal causing termination

Meta

Since

2.40