sd-device: allow to restart device monitor
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 May 2024 02:08:33 +0000 (11:08 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Aug 2024 02:16:33 +0000 (11:16 +0900)
commit1f267e77edf659b89f8779630712a82fda66f5e5
tree94941fd0850f257716d10ba9202fe4f1914be291
parentece1e280ee8b332185dd17b68032eafb7ed17cbc
sd-device: allow to restart device monitor

Previously, sd_device_monitor_stop() closes socket, hence we cannot
restart monitoring unless recreating sd_device_monitor object.
Let's allow to restart monitor by sd_device_monitor_start().
src/libsystemd/sd-device/device-monitor.c