chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4db6d58
)
mount: failure to mount cgroup hierarchies should not be fatal
author
Lennart Poettering
<lennart@poettering.net>
Tue, 26 Apr 2011 19:12:36 +0000
(21:12 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 26 Apr 2011 19:12:38 +0000
(21:12 +0200)
If we cannot open /etc/cgroup, print an error message, but go on, to
support cgroup-less builds.
https://bugzilla.redhat.com/show_bug.cgi?id=628004
src/mount-setup.c
patch
|
blob
|
history
diff --git
a/src/mount-setup.c
b/src/mount-setup.c
index 77be8fead846e1eba98c63d3f7c8fe28313c2c0a..48c32eab3339486c31bf756be816287cd6fbd9ed 100644
(file)
--- a/
src/mount-setup.c
+++ b/
src/mount-setup.c
@@
-136,8
+136,10
@@
static int mount_cgroup_controllers(void) {
/* Mount all available cgroup controllers that are built into the kernel. */
- if (!(f = fopen("/proc/cgroups", "re")))
- return -ENOENT;
+ if (!(f = fopen("/proc/cgroups", "re"))) {
+ log_error("Failed to enumerate cgroup controllers: %m");
+ return 0;
+ }
/* Ignore the header line */
(void) fgets(buf, sizeof(buf), f);