os.WIFSIGNALED()

os.WIFSIGNALED(status) → bool

Return True if the process returning ‘status’ was terminated by a signal.