From d778dc588507588b12b9f9d2905078db542ed751 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Tue, 18 Feb 2014 13:01:51 -0800 Subject: [PATCH 1/6] 2014.02.19, Version 0.10.25 (Stable) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é) * windows: freeze in uv_tcp_endgame (Alexis Campailla) * sunos: handle rearm errors (Fedor Indutny) --- AUTHORS | 2 ++ ChangeLog | 13 +++++++++++++ src/version.c | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 8239bc98..dcb99318 100644 --- a/AUTHORS +++ b/AUTHORS @@ -92,3 +92,5 @@ huxingyi Alex Crichton Luca Bruno Trevor Norris +Oguz Bastemur +Alexis Campailla diff --git a/ChangeLog b/ChangeLog index 9de43170..b41636dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2014.02.19, Version 0.10.25 (Stable) + +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é) + +* windows: freeze in uv_tcp_endgame (Alexis Campailla) + +* sunos: handle rearm errors (Fedor Indutny) + + 2014.01.30, Version 0.10.24 (Stable), aecd296b6bce9b40f06a61c5c94e43d45ac7308a Changes since version 0.10.23: diff --git a/src/version.c b/src/version.c index f2975b53..8ea385ed 100644 --- a/src/version.c +++ b/src/version.c @@ -35,7 +35,7 @@ #define UV_VERSION_MAJOR 0 #define UV_VERSION_MINOR 10 #define UV_VERSION_PATCH 25 -#define UV_VERSION_IS_RELEASE 0 +#define UV_VERSION_IS_RELEASE 1 #define UV_VERSION ((UV_VERSION_MAJOR << 16) | \ From 714bec14f601fdf0ff4394f7eeb596935f19ca2e Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Tue, 18 Feb 2014 13:01:54 -0800 Subject: [PATCH 2/6] Now working on v0.10.26 --- ChangeLog | 2 +- src/version.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b41636dd..39395866 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -2014.02.19, Version 0.10.25 (Stable) +2014.02.19, Version 0.10.25 (Stable), d778dc588507588b12b9f9d2905078db542ed751 Changes since version 0.10.24: diff --git a/src/version.c b/src/version.c index 8ea385ed..79d3794e 100644 --- a/src/version.c +++ b/src/version.c @@ -34,8 +34,8 @@ #define UV_VERSION_MAJOR 0 #define UV_VERSION_MINOR 10 -#define UV_VERSION_PATCH 25 -#define UV_VERSION_IS_RELEASE 1 +#define UV_VERSION_PATCH 26 +#define UV_VERSION_IS_RELEASE 0 #define UV_VERSION ((UV_VERSION_MAJOR << 16) | \ From 10f9120d78fa6351367e52e7fd5f3e8527d54f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 24 Feb 2014 12:57:28 +0100 Subject: [PATCH 3/6] errno: map EFBIG, ENOPROTOOPT and ETXTBSY This is a backport of: https://github.com/joyent/libuv/commit/107be2bed38afa6279aa53b13b946eb60c204969 https://github.com/joyent/libuv/commit/4a023fc0786780d254e1e4a34a983c36f59d99bf https://github.com/joyent/libuv/commit/aaaefe32cadcfb26d07d625d17d7a2b8cafb4f2d --- include/uv.h | 3 +++ src/unix/error.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/uv.h b/include/uv.h index 3978def5..8a103be1 100644 --- a/include/uv.h +++ b/include/uv.h @@ -130,6 +130,9 @@ extern "C" { XX( 57, ENODEV, "no such device") \ XX( 58, ESPIPE, "invalid seek") \ XX( 59, ECANCELED, "operation canceled") \ + XX( 60, EFBIG, "file too large") \ + XX( 61, ENOPROTOOPT, "protocol not available") \ + XX( 62, ETXTBSY, "text file is busy") \ #define UV_ERRNO_GEN(val, name, s) UV_##name = val, diff --git a/src/unix/error.c b/src/unix/error.c index 05ab4820..e0a28f96 100644 --- a/src/unix/error.c +++ b/src/unix/error.c @@ -104,6 +104,9 @@ uv_err_code uv_translate_sys_error(int sys_errno) { case EROFS: return UV_EROFS; case ENOMEM: return UV_ENOMEM; case EDQUOT: return UV_ENOSPC; + case EFBIG: return UV_EFBIG; + case ENOPROTOOPT: return UV_ENOPROTOOPT; + case ETXTBSY: return UV_ETXTBSY; default: return UV_UNKNOWN; } UNREACHABLE(); From 6f98f4efd112b21414ed92a048cda9f6f5978eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 25 Feb 2014 10:48:26 +0100 Subject: [PATCH 4/6] unix, windows: map ERANGE errno This is a backport of 2f58bb6 from the master branch --- include/uv.h | 1 + src/unix/error.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/uv.h b/include/uv.h index 8a103be1..c0945f13 100644 --- a/include/uv.h +++ b/include/uv.h @@ -133,6 +133,7 @@ extern "C" { XX( 60, EFBIG, "file too large") \ XX( 61, ENOPROTOOPT, "protocol not available") \ XX( 62, ETXTBSY, "text file is busy") \ + XX( 63, ERANGE, "result too large") \ #define UV_ERRNO_GEN(val, name, s) UV_##name = val, diff --git a/src/unix/error.c b/src/unix/error.c index e0a28f96..91efc72f 100644 --- a/src/unix/error.c +++ b/src/unix/error.c @@ -107,6 +107,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) { case EFBIG: return UV_EFBIG; case ENOPROTOOPT: return UV_ENOPROTOOPT; case ETXTBSY: return UV_ETXTBSY; + case ERANGE: return UV_ERANGE; default: return UV_UNKNOWN; } UNREACHABLE(); From c0c9480e02ec36e9b792a12e2f8a162f2bbcab68 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Wed, 26 Feb 2014 14:08:19 +0400 Subject: [PATCH 5/6] process: remove debug perror() prints fix #1128 --- src/unix/process.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/unix/process.c b/src/unix/process.c index ca029b1c..406df5fd 100644 --- a/src/unix/process.c +++ b/src/unix/process.c @@ -302,7 +302,6 @@ static void uv__process_child_init(uv_process_options_t options, if (use_fd == -1) { uv__write_int(error_fd, errno); - perror("failed to open stdio"); _exit(127); } } @@ -329,19 +328,16 @@ static void uv__process_child_init(uv_process_options_t options, if (options.cwd && chdir(options.cwd)) { uv__write_int(error_fd, errno); - perror("chdir()"); _exit(127); } 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); } @@ -351,7 +347,6 @@ static void uv__process_child_init(uv_process_options_t options, execvp(options.file, options.args); uv__write_int(error_fd, errno); - perror("execvp()"); _exit(127); } From 4f72f2145b902fcfefee8fa90419c9bf28d74bc2 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Thu, 6 Mar 2014 20:26:11 +0400 Subject: [PATCH 6/6] error: add ENXIO for O_NONBLOCK FIFO open() When opening FIFO with `O_NONBLOCK` flag, `ENXIO` could be returned if the readable side hasn't yet opened this FIFO. --- include/uv.h | 1 + src/unix/error.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/uv.h b/include/uv.h index c0945f13..dbd045df 100644 --- a/include/uv.h +++ b/include/uv.h @@ -134,6 +134,7 @@ extern "C" { XX( 61, ENOPROTOOPT, "protocol not available") \ XX( 62, ETXTBSY, "text file is busy") \ XX( 63, ERANGE, "result too large") \ + XX( 64, ENXIO, "no such device or address") \ #define UV_ERRNO_GEN(val, name, s) UV_##name = val, diff --git a/src/unix/error.c b/src/unix/error.c index 91efc72f..dead2c2e 100644 --- a/src/unix/error.c +++ b/src/unix/error.c @@ -108,6 +108,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) { case ENOPROTOOPT: return UV_ENOPROTOOPT; case ETXTBSY: return UV_ETXTBSY; case ERANGE: return UV_ERANGE; + case ENXIO: return UV_ENXIO; default: return UV_UNKNOWN; } UNREACHABLE();