mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-04 17:47:03 +03:00
udevd: only bind ctrl and netlink sockets when we open them
If they are passed from PID1 this is not necessary.
This commit is contained in:
parent
fcff1e7241
commit
bf6871639e
@ -1500,7 +1500,6 @@ static int manager_new(Manager **ret) {
|
||||
fd_uevent = udev_monitor_get_fd(manager->monitor);
|
||||
|
||||
(void) udev_monitor_set_receive_buffer_size(manager->monitor, 128 * 1024 * 1024);
|
||||
}
|
||||
|
||||
r = udev_monitor_enable_receiving(manager->monitor);
|
||||
if (r < 0)
|
||||
@ -1509,6 +1508,7 @@ static int manager_new(Manager **ret) {
|
||||
r = udev_ctrl_enable_receiving(manager->ctrl);
|
||||
if (r < 0)
|
||||
return log_error_errno(EINVAL, "error binding udev control socket");
|
||||
}
|
||||
|
||||
*ret = manager;
|
||||
manager = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user