[systemd-commits] src/core

David Herrmann dvdhrm at kemper.freedesktop.org
Thu May 8 04:25:55 PDT 2014


 src/core/cgroup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cd7affaeea16d3904354b810a292e594dfef25dd
Author: Łukasz Stelmach <l.stelmach at samsung.com>
Date:   Thu May 8 12:57:26 2014 +0200

    core: check the right variable for failed open()

diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 3aeaf56..29ab645 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -920,7 +920,7 @@ int manager_setup_cgroup(Manager *m) {
         safe_close(m->pin_cgroupfs_fd);
 
         m->pin_cgroupfs_fd = open(path, O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOCTTY|O_NONBLOCK);
-        if (r < 0) {
+        if (m->pin_cgroupfs_fd < 0) {
                 log_error("Failed to open pin file: %m");
                 return -errno;
         }



More information about the systemd-commits mailing list