diff --git a/AUTHORS b/AUTHORS index b6ea5786..a795019f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -124,3 +124,4 @@ William Light Oleg Efimov Lars Gierth rcp +Alexis Campailla diff --git a/ChangeLog b/ChangeLog index 29d8083c..773e88ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -90,6 +90,14 @@ Changes since version 0.11.18: * linux: fix C99/C++ comment (Fedor Indutny) +2014.02.19, Version 0.10.25 (Stable), d778dc588507588b12b9f9d2905078db542ed751 + +Changes since version 0.10.24: + +* stream: start thread after assignments (Oguz Bastemur) + +* unix: correct error when calling uv_shutdown twice (Saúl Ibarra Corretgé) + 2014.01.30, Version 0.10.24 (Stable), aecd296b6bce9b40f06a61c5c94e43d45ac7308a Changes since version 0.10.23: diff --git a/include/uv-errno.h b/include/uv-errno.h index 466cdf2c..3b6834f1 100644 --- a/include/uv-errno.h +++ b/include/uv-errno.h @@ -394,4 +394,10 @@ # define UV__ERANGE (-4034) #endif +#if defined(ENXIO) && !defined(_WIN32) +# define UV__ENXIO (-ENXIO) +#else +# define UV__ENXIO (-4033) +#endif + #endif /* UV_ERRNO_H_ */ diff --git a/include/uv.h b/include/uv.h index fbb57af7..7886e623 100644 --- a/include/uv.h +++ b/include/uv.h @@ -137,6 +137,7 @@ extern "C" { XX(EXDEV, "cross-device link not permitted") \ XX(UNKNOWN, "unknown error") \ XX(EOF, "end of file") \ + XX(ENXIO, "no such device or address") \ #define UV_HANDLE_TYPE_MAP(XX) \ XX(ASYNC, async) \ diff --git a/src/unix/process.c b/src/unix/process.c index 55f6ac58..53fef843 100644 --- a/src/unix/process.c +++ b/src/unix/process.c @@ -302,8 +302,7 @@ static void uv__process_child_init(const uv_process_options_t* options, close_fd = use_fd; if (use_fd == -1) { - uv__write_int(error_fd, -errno); - perror("failed to open stdio"); + uv__write_int(error_fd, -errno); _exit(127); } } @@ -330,7 +329,6 @@ static void uv__process_child_init(const uv_process_options_t* options, if (options->cwd != NULL && chdir(options->cwd)) { uv__write_int(error_fd, -errno); - perror("chdir()"); _exit(127); } @@ -347,13 +345,11 @@ static void uv__process_child_init(const uv_process_options_t* options, if ((options->flags & UV_PROCESS_SETGID) && setgid(options->gid)) { uv__write_int(error_fd, -errno); - perror("setgid()"); _exit(127); } if ((options->flags & UV_PROCESS_SETUID) && setuid(options->uid)) { uv__write_int(error_fd, -errno); - perror("setuid()"); _exit(127); } @@ -363,7 +359,6 @@ static void uv__process_child_init(const uv_process_options_t* options, execvp(options->file, options->args); uv__write_int(error_fd, -errno); - perror("execvp()"); _exit(127); }