udevd: make sd_notify independent of forknig/notify mode
authorTom Gundersen <teg@jklm.no>
Tue, 2 Jun 2015 21:08:11 +0000 (23:08 +0200)
committerTom Gundersen <teg@jklm.no>
Wed, 3 Jun 2015 00:03:17 +0000 (02:03 +0200)
commit7500cd5e96cff52a726d03194e3b927771ddb1d4
tree73428fffa5d22b06c0fefee5014c9f837fd385a7
parentb7f74dd48f7f3166caf781487c1f5c51f6b70d48
udevd: make sd_notify independent of forknig/notify mode

This will simply silently fail on non-systemd systems, so there is no reason
to make it conditional.

Also make it clear that we notify systemd about being ready as the last step
before starting the event loop, whereas the forking might need to happen
earlier.
src/udev/udevd.c