udev: fix inotify handling
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 26 May 2015 11:03:15 +0000 (13:03 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 26 May 2015 11:03:15 +0000 (13:03 +0200)
commit185abfc3d6b4e8f804a3f7216cd8b0459593af87
tree13e32aba29a09e440ccc8c7c013862b5198b278d
parentdb47294f41005e4570ce20c0ff3f49d5eea3a223
udev: fix inotify handling

This partly reverts:

    commit 6d1b1e0bc6bd020218afc5f05286bf372be283d5
    Author: Tom Gundersen <teg@jklm.no>
    Date:   Sun May 24 15:10:04 2015 +0200

        udevd: worker - fully clean up unnecessary fds

The inotify-fd _is_ used in the workers, so don't close it! Have a look at
udev-watch.c, which keeps track of the inotify-fd as a global variable
(ugh!).
src/udev/udevd.c