mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
cuda: Fix return value from CHECKPOINT_DEVICES hook so that dump's fail properly
cuda-checkpoint returns the positive CUDA error code when it runs into an issue and passing that along as the return value would cause errors to get ignored Signed-off-by: Jesus Ramos <jeramos@nvidia.com>
This commit is contained in:
parent
058572e91d
commit
6d1da61482
@ -402,7 +402,7 @@ int cuda_plugin_checkpoint_devices(int pid)
|
||||
interrupt:
|
||||
int_ret = interrupt_restore_thread(restore_tid, &save_sigset);
|
||||
|
||||
return status != 0 ? status : int_ret;
|
||||
return status != 0 ? -1 : int_ret;
|
||||
}
|
||||
CR_PLUGIN_REGISTER_HOOK(CR_PLUGIN_HOOK__CHECKPOINT_DEVICES, cuda_plugin_checkpoint_devices);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user