mirror of
https://github.com/systemd/systemd.git
synced 2025-01-07 21:18:41 +03:00
cgroup: propagate errors when we cannot open cgroup.subtree_control
This commit is contained in:
parent
26a17ca280
commit
54b5ba1d1f
@ -2635,10 +2635,8 @@ int cg_enable_everywhere(CGroupMask supported, CGroupMask mask, const char *p) {
|
|||||||
|
|
||||||
if (!f) {
|
if (!f) {
|
||||||
f = fopen(fs, "we");
|
f = fopen(fs, "we");
|
||||||
if (!f) {
|
if (!f)
|
||||||
log_debug_errno(errno, "Failed to open cgroup.subtree_control file of %s: %m", p);
|
return log_debug_errno(errno, "Failed to open cgroup.subtree_control file of %s: %m", p);
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
r = write_string_stream(f, s, WRITE_STRING_FILE_DISABLE_BUFFER);
|
r = write_string_stream(f, s, WRITE_STRING_FILE_DISABLE_BUFFER);
|
||||||
|
Loading…
Reference in New Issue
Block a user