Permalink
Commits on May 6, 2015
  1. Merge branch 'v1.x'

    saghul committed May 6, 2015
  2. Add SHA to ChangeLog

    saghul committed May 6, 2015
  3. 2015.05.07, Version 1.5.0 (Stable)

    Changes since version 1.4.2:
    
    * doc: clarify that the thread pool primites are not thread safe
      (Andrius Bentkus)
    
    * aix: always deregister closing fds from epoll (Michael)
    
    * unix: fix glibc-2.20+ macro incompatibility (Massimiliano Torromeo)
    
    * doc: add Sphinx plugin for generating links to man pages (Saúl Ibarra
      Corretgé)
    
    * doc: link system and library calls to man pages (Saúl Ibarra Corretgé)
    
    * doc: document uv_getnameinfo_t.{host|service} (Saúl Ibarra Corretgé)
    
    * build: update the location of gyp (Stephen von Takach)
    
    * win: name all anonymous structs and unions (TomCrypto)
    
    * linux: work around epoll bug in kernels 3.10-3.19 (Ben Noordhuis)
    
    * darwin: fix size calculation in select() fallback (Ole André Vadla
      Ravnås)
    
    * solaris: fix setsockopt for multicast options (Julien Gilli)
    
    * test: fix race condition in multithreaded test (Ben Noordhuis)
    
    * doc: fix long lines in tty.rst (Ben Noordhuis)
    
    * test: use UV_TTY_MODE_* values in tty test (Ben Noordhuis)
    
    * unix: don't clobber errno in uv_tty_reset_mode() (Ben Noordhuis)
    
    * unix: reject non-tty fds in uv_tty_init() (Ben Noordhuis)
    
    * win: fix pipe blocking writes (Alexis Campailla)
    
    * build: fix cross-compiling for iOS (Steven Kabbes)
    
    * win: remove unnecessary malloc.h
    
    * include: use `extern "c++"` for defining C++ code (Kazuho Oku)
    
    * unix: reap child on execvp() failure (Ryan Phillips)
    
    * windows: fix handle leak on EMFILE (Brian Green)
    
    * test: fix tty_file, close handle if initialized (Saúl Ibarra Corretgé)
    
    * doc: clarify what uv_*_open accepts (Saúl Ibarra Corretgé)
    
    * doc: clarify that we don't maintain external doc resources (Saúl
      Ibarra Corretgé)
    
    * build: add documentation for ninja support (Devchandra Meetei
      Leishangthem)
    
    * doc: document uv_buf_t members (Corey Farrell)
    
    * linux: fix epoll_pwait() fallback on arm64 (Ben Noordhuis)
    
    * android: fix compilation warning (Saúl Ibarra Corretgé)
    
    * unix: don't close the fds we just setup (Sam Roberts)
    
    * test: spawn child replacing std{out,err} to stderr (Saúl Ibarra
      Corretgé)
    
    * unix: fix swapping fds order in uv_spawn (Saúl Ibarra Corretgé)
    
    * unix: fix potential bug if dup2 fails in uv_spawn (Saúl Ibarra
      Corretgé)
    
    * test: remove LOG and LOGF variadic macros (Saúl Ibarra Corretgé)
    
    * win: fix uv_fs_access on directories (Saúl Ibarra Corretgé)
    
    * win: fix of double free in uv_uptime (Per Nilsson)
    
    * unix: open "/dev/null" instead of "/" for emfile_fd (Alan Rogers)
    
    * docs: add some missing words (Daryl Haresign)
    
    * unix: clean up uv_fs_open() O_CLOEXEC logic (Ben Noordhuis)
    
    * build: set SONAME for shared library in uv.gyp (Rui Abreu Ferreira)
    
    * windows: define snprintf replacement as inline instead of static (Rui
      Abreu Ferreira)
    
    * win: fix unlink of readonly files (João Reis)
    
    * doc: fix uv_run(UV_RUN_DEFAULT) description (Ben Noordhuis)
    
    * linux: intercept syscall when running under memory sanitizer (Keno
      Fischer)
    
    * aix: fix uv_interface_addresses return value (farblue68)
    
    * windows: defer reporting TCP write failure until next tick (Saúl
      Ibarra Corretgé)
    
    * test: add test for deferred TCP write failure (Saúl Ibarra Corretgé)
    saghul committed May 6, 2015
Commits on May 5, 2015
  1. test: add test for deferred TCP write failure

    The test exhibits that write failures are deferred to the callback.
    
    Refs: libuv#339
    PR_URL: libuv#344
    saghul committed May 5, 2015
  2. windows: defer reporting TCP write failure until next tick

    Fixes: libuv#339
    Reviewed-By: Bert Belder <bertbelder@gmail.com>
    saghul committed Apr 30, 2015
  3. aix: fix uv_interface_addresses return value

    Make it consistent with other platforms.
    
    PR-URL: libuv#303
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    farblue68 committed with saghul Apr 4, 2015
  4. linux: intercept syscall when running under memory sanitizer

    Since libuv has it's own syscall wrappers, the standard libc interception
    mechanism of the sanitizers do not catch these, leading to false positives
    for projects using libuv when running under memory sanitizer.
    
    Fix this by adding the appropriate calls to unpoison manually.
    
    PR-URL: libuv#311
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Keno committed with saghul Apr 10, 2015
Commits on Apr 30, 2015
  1. doc: fix uv_run(UV_RUN_DEFAULT) description

    Saying uv_run() always returns zero is incorrect in the presence of
    calls to uv_stop().
    
    PR-URL: libuv#337
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    bnoordhuis committed with saghul Apr 29, 2015
  2. win: fix unlink of readonly files

    Unix unlinks files even if they are not writable, windows version should behave similarly.
    
    Fixes: nodejs/node-v0.x-archive#3006
    PR-URL: libuv#327
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    joaocgreis committed with saghul Apr 21, 2015
  3. test: fix C++ style comment

    saghul committed Apr 30, 2015
  4. windows: define snprintf replacement as inline instead of static

    The MSVC compiler does not accept static methods defined in headers,
    when linking against a shared library. The snprintf replacement
    function used for windows, is now an inline function.
    
    PR-URL: libuv#329
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    equalsraf committed with saghul Apr 22, 2015
  5. build: set SONAME for shared library in uv.gyp

    For autoconf the libuv shared library SONAME is libuv.so.1.0
    but gyp builds in UNIX were missing the proper SONAME. gyp
    does not have an explicit setting for SONAME. Changing the
    output file extensions triggers the use of SONAME.
    
    The previous gyp configuration also also caused issue
    joyent/libuv#1382, that prevented building the tests against
    a shared library - the issue is now fixed for UNIX.
    
    PR-URL: libuv#329
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    equalsraf committed with saghul Apr 22, 2015
Commits on Apr 29, 2015
  1. unix: clean up uv_fs_open() O_CLOEXEC logic

    Move the logic out of uv__fs_work() and into a function of its own.
    
    PR-URL: libuv#326
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    bnoordhuis committed Apr 21, 2015
  2. Revert "memory: add uv_replace_allocator"

    This reverts commit c272f1f.
    
    The concept will come back to libuv, but it needs some more work.
    saghul committed Apr 29, 2015
Commits on Apr 28, 2015
  1. docs: add some missing words

    PR-URL: libuv#332
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    dharesign committed with saghul Apr 25, 2015
Commits on Apr 24, 2015
  1. unix: open "/dev/null" instead of "/" for emfile_fd

    We may not have permission to open "/". This fix allows libuv to be
    used in a OS X app that has sandboxing enabled, without the need for
    a temporary entitlement to allow reading of "/" (Which would never
    pass app review).
    
    In some rare cases "/dev" isn't mounted, so we open "/" as a
    fallback.
    
    PR-URL: libuv#328
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    alanjrogers committed with saghul Apr 21, 2015
Commits on Apr 21, 2015
  1. win: fix of double free in uv_uptime

    PR-URL: libuv#324
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    pni-qlik committed with saghul Apr 20, 2015
Commits on Apr 13, 2015
  1. win: fix uv_fs_access on directories

    For posterity, these are the rules for access on Windows (taken from
    CPython's implementation), Access is possible if:
    
    * Write access wasn't requested
    * The file isn't read-only
    * It's a directory (directories cannot be read-only on Windows)
    
    PR-URL: libuv#316
    Reviewed-By: Bert Belder <bertbelder@gmail.com>
    saghul committed Apr 12, 2015
Commits on Apr 12, 2015
  1. test: remove LOG and LOGF variadic macros

    Initial patch by @simar7, thanks!
    
    PR-URL: libuv#313
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    saghul committed Apr 10, 2015
Commits on Apr 10, 2015
  1. unix: fix potential bug if dup2 fails in uv_spawn

    PR-URL: libuv#309
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    saghul committed Apr 10, 2015
  2. unix: fix swapping fds order in uv_spawn

    Alternative implementation (and test) to
    libuv#226
    
    Fixes: joyent/libuv#1084
    PR-URL: libuv#309
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    saghul committed Apr 7, 2015
  3. test: spawn child replacing std{out,err} to stderr

    Refs: libuv#224
    
    PR-URL: libuv#309
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    saghul committed Mar 20, 2015
  4. unix: don't close the fds we just setup

    If a descriptor was being copied to an fd that *was not its current
    value*, it should get closed after being copied. But the existing code
    would close the fd, even when it no longer referred to the original
    descriptor. Don't do this, only close fds that are not in the desired
    range for the child process.
    
    See nodejs/node#862
    
    PR-URL: libuv#309
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    sam-github committed with saghul Feb 24, 2015
  5. android: fix compilation warning

    PR-URL: libuv#285
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    saghul committed Mar 23, 2015
Commits on Apr 7, 2015
  1. linux: fix epoll_pwait() fallback on arm64

    arm64 doesn't have a epoll_wait() system call but a logic error stopped
    libuv from falling back to epoll_pwait().
    
    This bug was introduced in commit 67bb2b5 ("linux: fix epoll_pwait()
    regression with < 2.6.19") which sadly exchanged one regression for
    another.
    
    PR-URL: libuv#308
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    bnoordhuis committed Apr 7, 2015
  2. doc: document uv_buf_t members

    PR-URL: libuv#307
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    coreyfarrell committed with saghul Apr 7, 2015
  3. Revert "test: fix tcp_oob occassionally timing out"

    This reverts commit 3346082.
    
    See libuv#258
    saghul committed Apr 7, 2015
Commits on Mar 27, 2015
  1. test: fix tcp_oob occassionally timing out

    Patch by @indutny
    
    Fixes: libuv#258
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    saghul committed Mar 27, 2015
Commits on Mar 26, 2015
  1. build: add documentation for ninja support

    PR-URL: libuv#290
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    deleisha committed with bnoordhuis Mar 26, 2015
Commits on Mar 23, 2015
  1. doc: clarify that we don't maintain external doc resources

    PR-URL: libuv#284
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    saghul committed Mar 23, 2015
  2. doc: clarify what uv_*_open accepts

    Fixes: libuv#281
    PR-URL: libuv#284
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    saghul committed Mar 23, 2015
Commits on Mar 20, 2015
  1. test: fix tty_file, close handle if initialized

    If the handle is closed when it wasn't initialized, uv_close will fail.
    
    PR-URL: libuv#279
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    saghul committed Mar 20, 2015
  2. windows: fix handle leak on EMFILE

    If CreateFileW succeeds, but _open_osfhandle fails, the handle must be closed.
    
    PR-URL: libuv#278
    Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
    briangreenery committed with saghul Mar 20, 2015