summaryrefslogtreecommitdiffstats
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-08-11 21:33:32 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-12 14:27:14 +0200
commitf714ecd450828e45a6f04e6277011d67a10c323f (patch)
tree79dd64f34804f5a7cfeadd62f61c44fbbded97d1 /src/udev/udevd.c
parenttest: use sd_device_monitor_set_description() (diff)
downloadsystemd-f714ecd450828e45a6f04e6277011d67a10c323f.tar.xz
systemd-f714ecd450828e45a6f04e6277011d67a10c323f.zip
udev: set description for device monitor
Diffstat (limited to '')
-rw-r--r--src/udev/udevd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 0a68b7e6ac..70a5394b16 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -797,6 +797,8 @@ static int worker_spawn(Manager *manager, Event *event) {
if (r < 0)
return r;
+ (void) sd_device_monitor_set_description(worker_monitor, "worker");
+
/* allow the main daemon netlink address to send devices to the worker */
r = device_monitor_allow_unicast_sender(worker_monitor, manager->monitor);
if (r < 0)
@@ -1919,6 +1921,8 @@ static int manager_new(Manager **ret, int fd_ctrl, int fd_uevent) {
log_warning_errno(r, "Failed to set receive buffer size for device monitor, ignoring: %m");
}
+ (void) sd_device_monitor_set_description(manager->monitor, "manager");
+
r = device_monitor_enable_receiving(manager->monitor);
if (r < 0)
return log_error_errno(r, "Failed to bind netlink socket: %m");