]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: do not call device_monitor_enable_receiving() for passed fd from pid1
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Nov 2018 05:52:24 +0000 (14:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Nov 2018 11:14:17 +0000 (20:14 +0900)
commit916707cca56ac73c81d10c41b6d7f0800663fc29
tree5a812c6c3c6f69722f7ad3407e4a3082f96d33d1
parentf1d7b7874ed6da76ccd8a29c9af9b20a33447fad
sd-device: do not call device_monitor_enable_receiving() for passed fd from pid1

Before c4b69e990f962128cc6975e36e91e9ad838fa2c4, if the socket fd is
passed from pid1, `udev_monitor_enable_receiving()` (now it is a wrapper
of `device_monitor_enable_receiving`) was not called.
Let's preserve the original logic.

Fixes #10754.
src/libsystemd/sd-device/device-monitor.c