mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 09:39:13 +00:00
restorer: Print error code from sys_set_robust_list
Some syscalls return error code, so for easier debugging instead of zapping it -- print it together with error message. And make error message more detailed as well. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
87d0d61e41
commit
421ceffaa5
1 changed files with 6 additions and 2 deletions
|
|
@ -206,8 +206,12 @@ static int restore_thread_common(struct rt_sigframe *sigframe,
|
|||
sys_set_tid_address((int *)decode_pointer(args->clear_tid_addr));
|
||||
|
||||
if (args->has_futex) {
|
||||
if (sys_set_robust_list(decode_pointer(args->futex_rla), args->futex_rla_len)) {
|
||||
pr_err("Robust list err\n");
|
||||
int ret;
|
||||
|
||||
ret = sys_set_robust_list(decode_pointer(args->futex_rla),
|
||||
args->futex_rla_len);
|
||||
if (ret) {
|
||||
pr_err("Failed to recover futex robust list: %d\n", ret);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue