[PATCH 1/3] tools: hv: Improve error logging in VSS daemon.

2013-06-27 Thread Tomas Hozza
Use errno and strerror() when logging errors to provide more information. Signed-off-by: Tomas Hozza --- tools/hv/hv_vss_daemon.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c index fea03a3..64112e1 100644

[PATCH 2/3] tools: hv: Check return value of setsockopt call

2013-06-27 Thread Tomas Hozza
Check return value of setsockopt call and if it fails print error to the system log and exit with non-zero value. Signed-off-by: Tomas Hozza --- tools/hv/hv_vss_daemon.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c

[PATCH 3/3] tools: hv: Check return value of poll call

2013-06-27 Thread Tomas Hozza
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 --- tools/hv/hv_vss_daemon.c | 11 ++- 1 file changed, 10 insertions(+), 1

Re: [PATCH 3/3] tools: hv: Check return value of poll call

2013-06-27 Thread Tomas Hozza
- Original Message - > On Thu, Jun 27, 2013 at 5:22 PM, Tomas Hozza wrote: > > 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 agai