summary refs log tree commit diff stats
path: root/linux-user/signal.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-04-29 12:32:24 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-06-28 04:35:07 +0530
commit709fe27b189aa86c801b9bd655f9267fec17d0d0 (patch)
treeb735252f0020e9f7b2cc5c372546ce17673d6537 /linux-user/signal.c
parent5aadd1829905aace2a1201ddb8ac9b7f18d104fb (diff)
downloadfocaccia-qemu-709fe27b189aa86c801b9bd655f9267fec17d0d0.tar.gz
focaccia-qemu-709fe27b189aa86c801b9bd655f9267fec17d0d0.zip
semihosting: Adjust error checking in common_semi_cb
The err parameter is non-zero if and only if an error occured.
Use this instead of ret == -1 for determining if we need to
update the saved errno.

This fixes the errno setting of SYS_ISTTY, which returns 0 on
error, not -1.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/signal.c')
0 files changed, 0 insertions, 0 deletions