udev: don't complain when udev_watch_end() is called without udev_watch_init()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 16 Jul 2020 14:12:42 +0000 (16:12 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 16 Jul 2020 16:38:03 +0000 (18:38 +0200)
commitd6d4961b01a986984f018bae141eabbce83f0e20
treebd3edb462c98cd8706dccae48ede9730f3653b12
parent6b9f5f01cb0f507218402e96da4d05e7a5fa31db
udev: don't complain when udev_watch_end() is called without udev_watch_init()

E.g. udevadm test prints "Invalid inotify descriptor." which is
meaningless without any context. I think it should be OK to call udev_watch_end()
from a cleanup path without any warning (even at debug level).
src/udev/udev-watch.c