criu/compel/arch
Mike Rapoport b13b95e522 compel: fix how PTRACE_GET_THREAD_AREA errors are handled
When PTRACE_GET_THREAD_AREA errors on kernels with
!CONFIG_IA32_EMULATION beacuse of missing support (-EIO), compel should
ignore uch errors in native mode.

However the check for error type uses return value of ptrace rather than
errno, which will always result in error propagation.

Use errno to detect type of error to fix this.

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
2022-04-28 17:53:52 -07:00
..
aarch64 clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
arm clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
mips clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
ppc64 clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
s390 clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
x86 compel: fix how PTRACE_GET_THREAD_AREA errors are handled 2022-04-28 17:53:52 -07:00