diff --git a/deps/uv/src/unix/ev/ev.c b/deps/uv/src/unix/ev/ev.c index 9888277b81..efd2ab9916 100644 --- a/deps/uv/src/unix/ev/ev.c +++ b/deps/uv/src/unix/ev/ev.c @@ -608,9 +608,6 @@ ev_syserr (const char *msg) static void * ev_realloc_emul (void *ptr, long size) { -#if __GLIBC__ - return realloc (ptr, size); -#else /* some systems, notably openbsd and darwin, fail to properly * implement realloc (x, 0) (as required by both ansi c-89 and * the single unix specification, so work around them here. @@ -621,7 +618,6 @@ ev_realloc_emul (void *ptr, long size) free (ptr); return 0; -#endif } static void *(*alloc)(void *ptr, long size) = ev_realloc_emul; diff --git a/deps/uv/src/unix/process.c b/deps/uv/src/unix/process.c index 230afe991f..4d54e043ab 100644 --- a/deps/uv/src/unix/process.c +++ b/deps/uv/src/unix/process.c @@ -237,6 +237,8 @@ static void uv__process_child_init(uv_process_options_t options, if (i != use_fd) { dup2(use_fd, i); close(use_fd); + } else { + uv__cloexec(use_fd, 0); } }