aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test1.in
diff options
context:
space:
mode:
authorGravatar Dylan Smith <dylan.ah.smith@gmail.com>2010-11-24 00:27:16 +0800
committerGravatar Grissiom <chaos.proton@gmail.com>2010-11-24 00:27:16 +0800
commit364d3dbbf8de049ab48220de6322cf004457612b (patch)
tree3ce9dfae3d408ea05131b635b0c6af5f4171f872 /tests/test1.in
parent9f3a4d1640779d8adc4948445f0f863296e1a50d (diff)
exec: Don't format status returned directly from builtin function
The builtin function returns the raw status, which is not the same as the integer return by waitpid. Therefore, the WIF macros shouldn't be used for checking or obtaining the status. This bug can be seen by executing (eval false). The builtin eval function returns 1, but proc_format_status misinterprets it as a signal by checking WIFSIGNALED, so adds 128 to the status to return 129. Signed-off-by: Grissiom <chaos.proton@gmail.com>
Diffstat (limited to 'tests/test1.in')
0 files changed, 0 insertions, 0 deletions