]> xenbits.xensource.com Git - libvirt.git/commit
nodedev: udev: Remove the udevEventHandleCallback on fatal error
authorErik Skultety <eskultet@redhat.com>
Wed, 28 Jun 2017 13:39:51 +0000 (15:39 +0200)
committerErik Skultety <eskultet@redhat.com>
Thu, 17 Aug 2017 14:50:47 +0000 (16:50 +0200)
commitd3f2820ff7bc48abe0ec324df436a7c86a61c63e
treec01742dfd8c72814ef8731e816443faa36a68f91
parent6167d8494cc6c78763efeb8b335c8c5dee2f473e
nodedev: udev: Remove the udevEventHandleCallback on fatal error

So we have a sanity check for the udev monitor fd. Theoretically, it
could happen that the udev monitor fd changes (due to our own wrongdoing,
hence the 'sanity' here) and if that happens it means we are handling an
event from a different entity than we think, thus we should remove the
handle if someone somewhere somehow hits this hypothetical case.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/node_device/node_device_udev.c