Not really related to this pull request but do you expect the error set to ever have anything in it? I'm not sure about OS X, but on Linux it's only useful for out-of-band data on TCP sockets and monitoring sysfs changes.