mirror of https://github.com/nodejs/node.git
uv: upgrade to 34e95d1
parent
c50b0c9237
commit
a0fdd5f3f6
|
@ -169,7 +169,15 @@ uv_loop_t* uv_loop_new(void) {
|
||||||
void uv_loop_delete(uv_loop_t* loop) {
|
void uv_loop_delete(uv_loop_t* loop) {
|
||||||
uv_ares_destroy(loop, loop->channel);
|
uv_ares_destroy(loop, loop->channel);
|
||||||
ev_loop_destroy(loop->ev);
|
ev_loop_destroy(loop->ev);
|
||||||
free(loop);
|
|
||||||
|
#ifndef NDEBUG
|
||||||
|
memset(loop, 0, sizeof *loop);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (loop == default_loop_ptr)
|
||||||
|
default_loop_ptr = NULL;
|
||||||
|
else
|
||||||
|
free(loop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
|
||||||
case EHOSTUNREACH: return UV_EHOSTUNREACH;
|
case EHOSTUNREACH: return UV_EHOSTUNREACH;
|
||||||
case EAI_NONAME: return UV_ENOENT;
|
case EAI_NONAME: return UV_ENOENT;
|
||||||
case ESRCH: return UV_ESRCH;
|
case ESRCH: return UV_ESRCH;
|
||||||
|
case ETIMEDOUT: return UV_ETIMEDOUT;
|
||||||
default: return UV_UNKNOWN;
|
default: return UV_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue