waf: cope with -ve return from mavgen on segv
This commit is contained in:
parent
9653aae21f
commit
2f656c187a
@ -24,8 +24,10 @@ class mavgen(Task.Task):
|
|||||||
python, mavgen, out, self.inputs[0].abspath()))
|
python, mavgen, out, self.inputs[0].abspath()))
|
||||||
|
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
# ignore if there was a signal to the interpreter rather than a real error in the script
|
# ignore if there was a signal to the interpreter rather
|
||||||
if ret > 128:
|
# than a real error in the script. Some environments use a
|
||||||
|
# signed and some an unsigned return for this
|
||||||
|
if ret > 128 or ret < 0:
|
||||||
Logs.warn('mavgen crashed with code: {}'.format(ret))
|
Logs.warn('mavgen crashed with code: {}'.format(ret))
|
||||||
ret = 0
|
ret = 0
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user