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
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
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
- 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