tools: hv: Check return value of poll call
authorTomas Hozza <thozza@redhat.com>
Wed, 22 May 2013 12:54:31 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 21:13:09 +0000 (14:13 -0700)
commit4d81e3074423d1bd69a29d5795ff71205814d9e1
tree9f5885357753f0ff1fa8653caf21bed1f022eb98
parent359016032239e0a585c01bffe04b72ab037e5de4
tools: hv: Check return value of poll call

Check return value of poll call and if it fails print error
to the system log. If errno is EINVAL then exit with non-zero
value otherwise continue the while loop and call poll again.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_kvp_daemon.c