Commits on Dec 13, 2012
  1. Update test/test-list.h

    committed Dec 13, 2012
  2. Update test/test-fs-event.c

    committed Dec 13, 2012
  3. Update src/unix/sunos.c

    committed Dec 13, 2012
Commits on Dec 9, 2012
  1. unix: use select() for specific fds on OS X

    kqueue(2) on osx doesn't work (emits EINVAL error) with specific fds
    (i.e. /dev/tty, /dev/null, etc). When given such descriptors - start
    select(2) watcher thread that will emit io events.
    indutny committed with bnoordhuis Aug 16, 2012
  2. unix: add uv_cancel()

    bnoordhuis committed Nov 26, 2012
  3. unix: only set SO_REUSEADDR on tcp listen sockets

    Avoid the extra syscall, it's a no-op for non-listening sockets.
    At least, it should be - it remains to be investigated if a FreeBSD kernel bug
    affects ephemeral port allocation inside connect(). See [1] for details.
    bnoordhuis committed Dec 9, 2012
Commits on Dec 8, 2012
  1. build: fix `make CFLAGS=<options>`

    Running a make target that builds the shared object while overriding the CFLAGS
    variable from the command line, would fail with a relocation error:
       relocation R_X86_64_32 against `.text' can not be used when making a shared
       object; recompile with -fPIC
    Fix that by adding -fPIC unconditionally.
    bnoordhuis committed Dec 8, 2012
Commits on Dec 4, 2012
  1. windows: improve / fix uv_interface_addresses

    * If GetAdaptersAddresses() failed, it would return UV_OK nonetheless,
      but the `adresses` and `count` out parameters would not be set.
    * When adapters were enabled or added in between the two
      GetAdaptersAddresses() calls, it would fail.
    * In case of an out of memory situation, libuv would crash with a fatal
    * All interface information is now stored in a single heap-allocated
    piscisaureus committed Dec 4, 2012
Commits on Dec 3, 2012
Commits on Nov 29, 2012
  1. Merge branch 'v0.8'

    bnoordhuis committed Nov 29, 2012
  2. unix: remove unnecessary static var init

    wq doesn't have to be initialized, init_once() takes care of that.
    Remove the initialization so it goes into .bss instead of .data.
    bnoordhuis committed Nov 29, 2012
  3. unix: initialize thread pool mutex and condvar

    It accidentally worked before this commit on Linux but not on OS X.
    Fixes #637.
    bnoordhuis committed Nov 29, 2012
  4. windows: fix uv_backend_fd() return value

    uv__new_artificial_error() returns a uv_err_t, not an int, and we can't use
    uv__set_artificial_error() because the uv_loop_t argument is const.
    bnoordhuis committed Nov 29, 2012
Commits on Nov 28, 2012
  1. Remove *.mk and *.Makefile from .gitignore list

    The *.mk and *.Makefile files generated by gyp are stored in $TOPLEVEL/out now.
    Fixes #636.
    bnoordhuis committed Nov 28, 2012
  2. unix: change uv_backend_timeout() prototype

    * change return value to signed int
    * constify loop argument
    bnoordhuis committed Nov 28, 2012
  3. unix: add uv_backend_fd() and uv_backend_timeout()

    This can be used in conjuction with uv_run_once() to poll in one thread and run
    the event loop's event callbacks in another.
    Useful for embedding libuv's event loop in another event loop.
    indutny committed with bnoordhuis Nov 26, 2012
Commits on Nov 27, 2012
Commits on Nov 26, 2012
  1. unix: drop pthread dependency in threadpool.c

    Replace the pthread code with their libuv counterparts. One step closer to a
    shared thread pool implementation.
    bnoordhuis committed Nov 26, 2012
Commits on Nov 24, 2012
Commits on Nov 22, 2012
  1. darwin, freebsd: set SO_NOSIGPIPE on sockets

    Suppresses delivery of SIGPIPE signals when the remote end of the socket has
    gone away.
    bnoordhuis committed Nov 22, 2012
  2. unix: fix thread pool race condition

    Send the wakeup signal to the main thread *before* releasing the lock. Doing it
    the other way around introduces a race condition where the watcher may already
    have been pulled off the work queue.
    bnoordhuis committed Nov 22, 2012
Commits on Nov 20, 2012
  1. linux: use /proc/cpuinfo for CPU frequency

    Obtain the CPU frequency from /proc/cpuinfo because there may not be any
    cpufreq info available in /sys. This also means that the reported CPU speed
    from now on is the *maximum* speed, not the *actual* speed the CPU runs at.
    This change only applies to x86 because ARM and MIPS don't report that
    information in /proc/cpuinfo.
    Fixes #588.
    This is a back-port of commit 775064a from the master branch.
    bnoordhuis committed Oct 20, 2012
  2. build: fix dragonflybsd gyp build

    Depends on a not-yet-landed gyp patch:
    bnoordhuis committed Nov 20, 2012
Commits on Nov 19, 2012
  1. test: disable fs event test on dragonflybsd

    Disable the fs_event_close_in_callback test on DragonFlyBSD, like we do on the
    other BSDs.
    The test doesn't work with kqueue-based file notifications, the event is
    generated before the file is watched. Maybe we should remove it altogether.
    bnoordhuis committed Nov 19, 2012
  2. unix: set proper loop errno for udp write req cb

    Harmonize with stream.c and tcp.c: when a handle is closed that has pending
    writes queued up, run the callbacks with loop->err.code set to UV_ECANCELED,
    not UV_EINTR.
    bnoordhuis committed Nov 19, 2012
Commits on Nov 16, 2012
  1. unix: remove libev

    bnoordhuis committed Aug 22, 2012