diff options
Diffstat (limited to 'src/login/logind-user.c')
-rw-r--r-- | src/login/logind-user.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/login/logind-user.c b/src/login/logind-user.c index 9dfead9d5..b692b533e 100644 --- a/src/login/logind-user.c +++ b/src/login/logind-user.c @@ -339,7 +339,9 @@ static int user_create_cgroup(User *u) { log_warning("Failed to create cgroup %s:%s: %s", *k, p, strerror(-r)); } - hashmap_put(u->manager->user_cgroups, u->cgroup_path, u); + r = hashmap_put(u->manager->user_cgroups, u->cgroup_path, u); + if (r < 0) + log_warning("Failed to create mapping between cgroup and user"); return 0; } |