[CRIU] [PATCH 3/5] check: check_sigqueuinfo -- Return -1 on error

Cyrill Gorcunov gorcunov at openvz.org
Mon Mar 25 17:26:38 EDT 2013


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-check.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cr-check.c b/cr-check.c
index dabadf5..421c9bb 100644
--- a/cr-check.c
+++ b/cr-check.c
@@ -440,7 +440,7 @@ int check_sigqueuinfo()
 
 	if (sys_rt_sigqueueinfo(getpid(), SIGUSR1, &info)) {
 		pr_perror("Unable to send siginfo with positive si_code to itself");
-		return 1;
+		return -1;
 	}
 
 	return 0;
-- 
1.8.1.4



More information about the CRIU mailing list