uv: upgrade to 34e95d1

pull/23362/head
Ben Noordhuis 2011-12-04 13:22:21 +01:00
parent c50b0c9237
commit a0fdd5f3f6
2 changed files with 10 additions and 1 deletions

View File

@ -169,6 +169,14 @@ uv_loop_t* uv_loop_new(void) {
void uv_loop_delete(uv_loop_t* loop) {
uv_ares_destroy(loop, loop->channel);
ev_loop_destroy(loop->ev);
#ifndef NDEBUG
memset(loop, 0, sizeof *loop);
#endif
if (loop == default_loop_ptr)
default_loop_ptr = NULL;
else
free(loop);
}

View File

@ -82,6 +82,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case EHOSTUNREACH: return UV_EHOSTUNREACH;
case EAI_NONAME: return UV_ENOENT;
case ESRCH: return UV_ESRCH;
case ETIMEDOUT: return UV_ETIMEDOUT;
default: return UV_UNKNOWN;
}