History log of /libuv/ (Results 3351 – 3375 of 5435)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
bfe269b821-Feb-2013 Timothy J Fontaine

test: add tap output

Given UV_TAP_OUTPUT being set, test result output should use TAP formatting

c98083ef22-Feb-2013 Ben Noordhuis

unix: short-circuit on no-op io watcher changes

Don't add the io watcher to the watcher queue if the requested change
is effectively a no-op, that is, when the event mask doesn't change.

unix: short-circuit on no-op io watcher changes

Don't add the io watcher to the watcher queue if the requested change
is effectively a no-op, that is, when the event mask doesn't change.

The exception here is sunos because the event ports backend requires
that watched file descriptors are re-added on every turn of the event
loop.

This commit is a micro-optimization, it does not change the event
loop's observable behavior in any way.

show more ...

da0b84d422-Feb-2013 Ben Noordhuis

unix: auto-unref spawn handle on process exit

Consistent, for better or worse, with uv-win.

Fixes #718.

3348cd7421-Feb-2013 Ben Noordhuis

unix: handle EINPROGRESS for unix sockets

Before this commit, it was assumed that connect() on UNIX sockets never
returns EINPROGRESS. It turned out to be a bad assumption: Dave Pacheco

unix: handle EINPROGRESS for unix sockets

Before this commit, it was assumed that connect() on UNIX sockets never
returns EINPROGRESS. It turned out to be a bad assumption: Dave Pacheco
reports sporadic hangups on SmartOS because of that.

It's not clear to me _why_ the Illumos kernel returns that error but
that's inconsequential: whatever the cause, libuv needs to handle it
and now it does.

Fixes joyent/node#4785.

show more ...

1d64c82821-Feb-2013 Ben Noordhuis

unix: use uv__set_artificial_error in uv_write2

* Use uv__set_artificial_error(), slightly more efficient than
uv__set_sys_error().

* Return UV_EINVAL instead of UV_EOPNOTSUPP

unix: use uv__set_artificial_error in uv_write2

* Use uv__set_artificial_error(), slightly more efficient than
uv__set_sys_error().

* Return UV_EINVAL instead of UV_EOPNOTSUPP.

* Fix up style.

show more ...

9a8db3c021-Feb-2013 Saúl Ibarra Corretgé

unix: reduce line count, return uv__set_sys_error

3f47a2da21-Feb-2013 Saúl Ibarra Corretgé

unix: fail early on bad send_handle in uv_write2

Return UV_EBADF if send_handle doesn't have a valid fd.

26fa6f8020-Feb-2013 Ben Noordhuis

linux: fix abort() on epoll_ctl() race condition

Don't check the return value of epoll_ctl(EPOLL_CTL_DEL). When the
file descriptor is closed, we're potentially racing with another
t

linux: fix abort() on epoll_ctl() race condition

Don't check the return value of epoll_ctl(EPOLL_CTL_DEL). When the
file descriptor is closed, we're potentially racing with another
thread and that means the errno is not a reliable indicator of
the actual error.

The other event mechanisms (kqueue, event ports) are not affected
because:

* kqueue returns either EBADF or ENOENT. Both are handled by libuv.
* event ports rearms all file descriptors on each call to port_getn().

Fixes joyent/node#4558.

show more ...

fd24a69c20-Feb-2013 Ben Noordhuis

build: fix shared-after-static build

Executing `make libuv.so` after `make libuv.a` failed because the
libuv.a target compiled the files in src/ without -fPIC.

Make the libuv.so

build: fix shared-after-static build

Executing `make libuv.so` after `make libuv.a` failed because the
libuv.a target compiled the files in src/ without -fPIC.

Make the libuv.so target depend on files with a different suffix to
keep them separated.

show more ...

7048a80620-Feb-2013 Ben Noordhuis

doc: document _LARGEFILE_SOURCE + _FILE_OFFSET_BITS

30f6288320-Feb-2013 Ben Noordhuis

unix, windows: make uv_timer_get_repeat() const correct

0cb9fbfe20-Feb-2013 Ben Noordhuis

unix, windows: change timer intervals to uint64_t

d6bfedb820-Feb-2013 Ben Noordhuis

unix, windows: make uv_now() return uint64_t

Using int64_t doesn't make sense here because the return value is never
negative.

6bf1a56e15-Feb-2013 Andrius Bentkus

Return the errorcode provided by uv_set_artificial_error.

This reduces the line count.

7480974e15-Feb-2013 Andrius Bentkus

Adhere to the naming conventions in uv_timer_* functions.

In the src/*/timer.c code the first argument is called handle, not timer.
We should be consistent in the interface definition fi

Adhere to the naming conventions in uv_timer_* functions.

In the src/*/timer.c code the first argument is called handle, not timer.
We should be consistent in the interface definition file.

show more ...

b6f72e5412-Feb-2013 Ben Noordhuis

linux: fix O_CLOEXEC/O_NONBLOCK defines

da71649910-Feb-2013 Ben Noordhuis

unix, windows: make uv_fs_t.statbuf public

Make the statbuf field public. This means you no longer have to use
req->ptr - though that still works and will continue to work for the
fo

unix, windows: make uv_fs_t.statbuf public

Make the statbuf field public. This means you no longer have to use
req->ptr - though that still works and will continue to work for the
foreseeable future.

Fixes #704.

show more ...

fadfeaf607-Feb-2013 Shigeki Ohtsu

unix,windows: fix timer order in case of same timeout

Compare start_id of timer handles when they have the same timeout.
start_id is allocated with loop->timer_counter in uv_timer_start.

c15d4a7c08-Feb-2013 Fedor Indutny

stream: use kevent() information before accept()

Limit number of syscalls by using backlog length information provided by
kevent().

da33bba706-Feb-2013 Ben Noordhuis

darwin: make uv_cond_timedwait() clock skew safe

Use pthread_cond_timedwait_relative_np() so we're not prone to spurious
bugs caused by clock skew.

5fa6903906-Feb-2013 Saúl Ibarra Corretgé

win: Avoid using subversion to download gyp

d5dd7d0706-Feb-2013 Ben Noordhuis

darwin: merge uv_cond_timedwait implementation

This is a revised version of commit 8311390.

8d746ff706-Feb-2013 Ben Noordhuis

unix: remove scandir prototype workaround in fs.c

It's not necessary for newer OS X releases and I don't care enough
about OpenBSD to squelch the warning.

60dd395a06-Feb-2013 Ben Noordhuis

Revert "darwin: merge uv_cond_timedwait implementation"

Using mach_absolute_time() for the pthread_cond_timedwait() timeout
breaks a number of tests on OS X 10.8.2.

This reverts

Revert "darwin: merge uv_cond_timedwait implementation"

Using mach_absolute_time() for the pthread_cond_timedwait() timeout
breaks a number of tests on OS X 10.8.2.

This reverts commit 8311390f13177f3086ecdac875115d2d4cc2688b.

show more ...

8311390f04-Feb-2013 Ben Noordhuis

darwin: merge uv_cond_timedwait implementation

Merge the OS X specific implementation of uv_cond_timedwait() with the
generic one. The only difference is that it now uses mach_absolute_t

darwin: merge uv_cond_timedwait implementation

Merge the OS X specific implementation of uv_cond_timedwait() with the
generic one. The only difference is that it now uses mach_absolute_time
instead of gettimeofday.

show more ...

1...<<131132133134135136137138139140>>...218