]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Warn if requesting update to non-existent timer/handle watch
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 22 Nov 2012 16:42:30 +0000 (16:42 +0000)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:34:53 +0000 (16:34 -0500)
commit9d239b595657d91485126a86b435ec22db2fc02f
tree81ee38428abd0067ed7881ef290f160ca3947f68
parentf45dded083c4a2b63311831ce0ec075e7a287a76
Warn if requesting update to non-existent timer/handle watch

The event code is a no-op if requested to update a non-existent
timer/handle watch. This makes it hard to detect bugs in the
caller who have passed bogus data. Add a VIR_WARN output in
such cases, since the API does not allow for return errors.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 39064f0ff9dca13aeea61f663a2bf538e90d6357)
src/util/event_poll.c