[CRIU] [PATCH 1/4] cr_service(): close fd on error
Kir Kolyshkin
kir at openvz.org
Thu Dec 12 10:02:25 PST 2013
... and don't return -1.
This is a missing part from commit 3477223.
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
cr-service.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cr-service.c b/cr-service.c
index a82ef9e..ce28b59 100644
--- a/cr-service.c
+++ b/cr-service.c
@@ -391,7 +391,7 @@ int cr_service(bool daemon_mode)
if (opts.pidfile) {
if (write_pidfile(getpid()) == -1) {
pr_perror("Can't write pidfile");
- return -1;
+ goto err;
}
}
--
1.8.1.4
More information about the CRIU
mailing list