mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
lib: return -EBADE instead of -1
Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
e4c366806f
commit
e80ee17368
@@ -231,7 +231,7 @@ int criu_check(void)
|
||||
if (ret)
|
||||
goto exit;
|
||||
|
||||
ret = resp->success ? 0 : -1;
|
||||
ret = resp->success ? 0 : -EBADE;
|
||||
|
||||
exit:
|
||||
if (resp)
|
||||
@@ -263,7 +263,7 @@ int criu_dump(void)
|
||||
else
|
||||
ret = 0;
|
||||
} else
|
||||
ret = -1;
|
||||
ret = -EBADE;
|
||||
|
||||
exit:
|
||||
if (resp)
|
||||
@@ -292,7 +292,7 @@ int criu_restore(void)
|
||||
if (resp->success)
|
||||
ret = resp->restore->pid;
|
||||
else
|
||||
ret = -1;
|
||||
ret = -EBADE;
|
||||
|
||||
exit:
|
||||
if (resp)
|
||||
|
Reference in New Issue
Block a user