sd-device: do not modify socket option(s) if socket is passed by PID1
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 14 Dec 2018 00:28:29 +0000 (09:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 14 Dec 2018 00:28:33 +0000 (09:28 +0900)
commitc821e84ac70186a72a8951289c008025d656000f
tree9b55f17ca0014474bd272ed468e962caeb9d6825
parenta153a1de757c1b85a3493c1581f45413b9782a3c
sd-device: do not modify socket option(s) if socket is passed by PID1

If the socket fd is passed by PID1, then it is created by .socket unit
and we have already set sufficient option(s) for the socket.
So, let's not touch the passed socket.
src/libsystemd/sd-device/device-monitor.c