mirror of
https://github.com/systemd/systemd.git
synced 2025-01-06 17:18:12 +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) {
|
||||
f = fopen(fs, "we");
|
||||
if (!f) {
|
||||
log_debug_errno(errno, "Failed to open cgroup.subtree_control file of %s: %m", p);
|
||||
break;
|
||||
}
|
||||
if (!f)
|
||||
return log_debug_errno(errno, "Failed to open cgroup.subtree_control file of %s: %m", p);
|
||||
}
|
||||
|
||||
r = write_string_stream(f, s, WRITE_STRING_FILE_DISABLE_BUFFER);
|
||||
|
Loading…
Reference in New Issue
Block a user