Improved error reporting in xio
commitc5944b2b8efc5b59de898f6583cf516ef14c5576
authorScott Moeller <electronjoe@gmail.com>
Sun, 3 Mar 2013 05:41:39 +0000 (2 21:41 -0800)
committerDaniel Borkmann <dborkman@redhat.com>
Mon, 4 Mar 2013 11:17:10 +0000 (4 12:17 +0100)
tree723815cc6ec2988835a793b5bddf1b43572e5736
parent5ea87cd6e735f6c5b4af1a4fabf095e24e0372d0
Improved error reporting in xio

How portable is strerror? Assuming it is... This patch provides more robust
failure mode reporting in xio.

Pre patch:
curvetun[15819]: ioctl screwed up!

Post patch:
curvetun[15819]: ioctl screwed up! Operation not permitted.
xio.c