On Feb 12, 2008, at 3:18 PM, Lucian Adrian Grijincu wrote:
This is the code in question.
if (ret == -1) {
(*num) = 0;
if (errno == ETIME || errno == EINTR) {
rv = APR_TIMEUP;
}
else {
rv = APR_EGENERAL;
}
}
I don't really like the APR_EGENERAL in the else either.
Shouldn't this be something like:
if (ret == -1)
{
(*num) = 0;
rv = apr_get_netos_error();
}
and let apr_get_netos_error handle OS to APR errors consistent with
other architectures (select.c, poll.c)
+1
Basant, can you confirm this works as expected?