Improved error reporting in xio
commit7b193b5608fdd0980e144bcc0f5d66134f4428c2
authorScott Moeller <electronjoe@gmail.com>
Sun, 3 Mar 2013 05:41:39 +0000 (2 21:41 -0800)
committerScott Moeller <electronjoe@gmail.com>
Sun, 3 Mar 2013 22:31:07 +0000 (3 14:31 -0800)
tree723815cc6ec2988835a793b5bddf1b43572e5736
parent0b98ca0ea6aaa2f41660668eb9d61bd6d7bd62c7
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