udevd: don't allocate sd_event object before fork
authorTom Gundersen <teg@jklm.no>
Sun, 31 May 2015 21:52:53 +0000 (23:52 +0200)
committerTom Gundersen <teg@jklm.no>
Sun, 31 May 2015 21:52:53 +0000 (23:52 +0200)
commit49f997f3bcf3ff6a1d794dfb8fbd3907d653dc33
tree5fa7f024784bbdc086494ff02d7b5d2adf517fde
parentf6fd40d16adbd0f9ddbb1f24b4b8734fd8790ad0
udevd: don't allocate sd_event object before fork

In daemon mode we would break sd-event as it cannot work accross different processes.
Simply delay the allocation to after the fork.
src/udev/udevd.c