-
- Downloads
utils: Don't consider exit status 255 to be signal 127
Linux has 64 signals, numbered 1 to 64, of which signals 32 to 64
inclusive are the POSIX real-time signals. Older Linux versions had
31 signals, numbered 1 to 31.
Some utilities, like old versions of vulkaninfo(1), use exit(-1) to
signal errors. This really results in exit status (unsigned char)(-1),
or 255, which timeout(1) passes through as-is. This can't be
128 + a signal number, because there aren't that many signals in
practice. Stop interpreting exit statuses as signals after
128+SIGRTMAX (in practice 128+64) instead.
Signed-off-by:
Simon McVittie <smcv@collabora.com>
parent
0c6fe333
No related branches found
No related tags found
Please register or sign in to comment