udevd: do not call udev_ctrl_enable_receiving() if the socket is passed from pid1
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Nov 2018 02:57:48 +0000 (11:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Nov 2018 02:57:48 +0000 (11:57 +0900)
commit6acf1ccba5ef1741649bf858fac5afabb2328fff
tree65a1af53d586293ced926dea8d43caa6e29af49e
parent986ab0d2dc161dfa026e8fc7a609f9efb8cb4397
udevd: do not call udev_ctrl_enable_receiving() if the socket is passed from pid1

Before c4b69e990f962128cc6975e36e91e9ad838fa2c4, if the socket fd is
passed from pid1, `udev_ctrl_enable_receiving()` was not called.
Let's preserve the original logic.
src/udev/udevd.c