mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-03 13:47:04 +03:00
udev: ignore ENOEXEC from cgroup lookup
The recent cgroup-rework changed the error code for un-mounted cgroupfs to ENOEXEC. Make sure udev ignores it just like ENOENT and does not spill warnings on the screen.
This commit is contained in:
parent
017574e6e8
commit
e859aa9e99
@ -1706,7 +1706,7 @@ int main(int argc, char *argv[]) {
|
||||
by PID1. otherwise we are not guaranteed to have a dedicated cgroup */
|
||||
r = cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, 0, &cgroup);
|
||||
if (r < 0) {
|
||||
if (r == -ENOENT)
|
||||
if (r == -ENOENT || r == -ENOEXEC)
|
||||
log_debug_errno(r, "did not find dedicated cgroup: %m");
|
||||
else
|
||||
log_warning_errno(r, "failed to get cgroup: %m");
|
||||
|
Loading…
x
Reference in New Issue
Block a user