]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/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)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 23 Nov 2012 10:11:42 +0000 (10:11 +0000)
commit39064f0ff9dca13aeea61f663a2bf538e90d6357
tree29e1ca9e7d3e3d291bca803b7f2cd212fe336212
parent81d6c4defe2b72f34b02884bb78f924165998771
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>
src/util/event_poll.c