When using a function like fpAccept on a non-blocking socket, in some cases -1 is returned with a documented (Linux kernel) error code of EAGAIN. Should I be looking for this in errno or SocketError?
When I've retrieved a numeric code from errno or SocketError, is there a way of converting it to a concise literal such as 'EAGAIN'? I want the log to report that accept() has failed with EAGAIN, rather than having explanatory text that doesn't match the kernel documentation.
