mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +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
8ee2eba47c
commit
dc6cef0b4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue