]> code.ossystems Code Review - openembedded-core.git/commit
bash: fix wrong exit status offset
authorRui Wang <rui.wang@windriver.com>
Mon, 16 Jul 2018 02:55:08 +0000 (10:55 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Jul 2018 23:01:02 +0000 (00:01 +0100)
commitbefc0dcbbd5d0ccc97ffac1ce24247ac4b001137
tree30cf0cd43b2b25fa3c8a70d2d93ee6ab4b0aa3b0
parent195f7a1d1a40c341ca6c84232194a565e9daa9d6
bash: fix wrong exit status offset

In Linux,8 bits of the return code and 8 bits of the number of
the killing signal are mixed into a single value on the exit code,
so the exit status offset should be 8. But the autoconf checker
can not determine it while cross compiling, and then it is set to
the default value 0, which will cause generating the wrong exit
code if program exit with an error code.

(From OE-Core rev: e2dea46607a24620d6d2c250efc9b2e95bfd5ad8)

Signed-off-by: Rui Wang <rui.wang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-extended/bash/bash.inc