Ben Noordhuis
b3a97f8981
unix: make uv__cloexec() EINTR resilient
...
It's somewhat underspecified if and when fcntl() can return EINTR. It never
does on Linux for F_GETFD or F_SETFD but let's not make any assumptions.
2012-06-14 01:19:34 +02:00
Bert Belder
07c6ac2b55
windows: move child stdio buffer ops to a separate file
2012-06-13 19:17:13 +02:00
Bert Belder
9f44b0e393
windows: fix serious typo in init_child_stdio
2012-06-13 01:30:43 +02:00
Ben Noordhuis
95e89c6a0e
unix, windows: share uv__handle_init()
2012-06-13 01:28:58 +02:00
Bert Belder
b7e150ee91
windows: uv_kill() should report UV_ESRC when the victim is already dead
2012-06-12 17:00:16 +02:00
Bert Belder
048422d865
windows: fix some comments
2012-06-12 17:00:15 +02:00
Ben Noordhuis
84f0d96ae0
unix: reset error status in uv_dlopen()
...
Fixes a bug where uv_dlopen() mistakenly reported failure because of previous
errors.
2012-06-12 01:48:21 +02:00
Bert Belder
e0c6114e32
windows: remove run-time RB_INSERT check from release builds
2012-06-11 22:19:24 +02:00
Ben Noordhuis
3b417d10bc
linux: add eventfd and eventfd2 syscalls
2012-06-11 04:20:03 +02:00
Ben Noordhuis
78bc0d6134
unix: implement async handles in libuv
...
Replace libev backed async handles with a pure libuv implementation.
2012-06-11 04:19:31 +02:00
Ben Noordhuis
ddb5f55922
unix: simplify uv__make_pipe() and uv__make_socketpair()
2012-06-11 02:47:39 +02:00
Bert Belder
5c30443555
unix: uv_async handles should not be unref'ed automatically
2012-06-10 02:25:20 +02:00
George Yohng
fbe99743d5
windows: uv_interface_addresses() should not report disconnected adapters
2012-06-09 22:38:15 +02:00
saghul
6a47e3ac7c
windows: add missing include for limits.h
2012-06-09 02:51:18 +02:00
Ben Noordhuis
23b4e38d20
unix: make uv_shutdown() return UV_ENOTCONN
...
Return UV_ENOTCONN when the stream is not connected, not UV_EINVAL. Aligns
with uv-win.
2012-06-08 02:48:28 +02:00
Ben Noordhuis
dea45940cd
unix: fix req cb / close cb invoke delay
...
Finalization of closed handles and associated requests was sometimes delayed
until an external event (network I/O, timeout, etc.) happened. This commit
addresses that.
2012-06-08 01:37:39 +02:00
Mark Cavage
9cb8bdc74e
sunos: uv_interface_addresses needlessly #ifdef'd out
2012-06-07 10:51:45 -07:00
Ben Noordhuis
59cda86709
unix, test: make NANOSEC a 64 bits unsigned int
...
Avoids accidental overflow / truncation when it's used in 32 bits arithmetic.
2012-06-07 17:00:01 +02:00
Ben Noordhuis
649ad50c32
unix: fix event loop stall
...
Undoes most of the changes made to libev in 7d2ea31 and c9396dd .
2012-06-06 05:12:28 +02:00
Ben Noordhuis
6fe753022f
unix, windows: add debug mode handle printer
...
Debugging tool, prints a list of active/all handles. Not actively exported.
2012-06-06 04:25:12 +02:00
Bert Belder
24f8a53f4c
windows: refactor uv_chdir implementation
2012-06-05 18:23:07 +02:00
Bert Belder
a0d2af0fd2
windows: detect when GetCurrentDirectoryW returns more than MAX_PATH chars
...
This should never happen. However the CRT has a code path to deal
with this situation, so at least detect it when it happens and return
an error, instead of potentially opening a security hole.
2012-06-05 18:23:06 +02:00
Ben Noordhuis
c8c9fe1c74
unix: move memset out of recvmsg inner loop
2012-06-05 15:42:20 +02:00
Ben Noordhuis
738b31eb3a
unix: fix loop starvation under high network load
...
uv__read() and uv__udp_recvmsg() read incoming data in a loop. If data comes
in at high speeds, the kernel receive buffer never drains and said functions
never terminate, stalling the event loop indefinitely. Limit the number of
consecutive reads to 32 to stop that from happening.
The number 32 was chosen at random. Empirically, it seems to maintain a high
throughput while still making the event loop move forward at a reasonable pace.
2012-06-05 15:27:51 +02:00
Bert Belder
be9d1ce909
windows: cast STARTUP_INFO.cbReserved2 to WORD to avoid warnings
2012-06-05 00:58:51 +02:00
Bert Belder
829eaf3e3f
windows: cast OVERLAPPED.Internal to NTSTATUS to avoid warnings
2012-06-05 00:58:50 +02:00
Bert Belder
1b75d36bab
windows: refactor uv_exepath implementation
2012-06-05 00:58:50 +02:00
Bert Belder
c9f83e524c
windows: refactor uv_cwd implementation
2012-06-05 00:58:49 +02:00
Ben Noordhuis
7d2ea31618
unix: fix event loop stall
...
Stop libev from entering the epoll_wait/kevent/port_getn/etc. syscall when
there are no active handles left, that will block indefinitely.
2012-06-04 23:36:50 +02:00
Bert Belder
64f8cf463d
windows, unix: uv_buf_init should take unsigned int for the buffer length
2012-06-04 18:04:49 +02:00
Bert Belder
c0b530d079
Windows: avoid compiler warning
2012-06-04 18:04:48 +02:00
Bert Belder
60746b03cb
windows: move some stream functions to stream-inl.h
2012-06-04 18:04:47 +02:00
Bert Belder
754a695df6
windows: move request macros to req-inl.h
2012-06-04 18:04:46 +02:00
Bert Belder
63b9b1d472
windows: move handle macros to handle-inl.h
2012-06-04 18:04:45 +02:00
Bert Belder
1974541bc9
windows: guard against including req-inl.h more than once
2012-06-04 18:04:45 +02:00
Bert Belder
3b907cf0ec
windows: guard against including handle-inl.h more than once
2012-06-04 18:04:44 +02:00
Ben Noordhuis
cb9ca142b5
unix: queue write reqs if stream is not connected
2012-06-04 16:55:04 +02:00
Fedor Indutny
a30e45f1d7
unix: remap fds 0-2 to /dev/null if ignore flag set
2012-06-04 16:14:21 +02:00
Ben Noordhuis
c76c2066c6
unix, windows: add semaphore functions
2012-06-03 04:04:05 +02:00
Ben Noordhuis
7d97ba8003
unix: make mutex sanity checks non-optional
2012-06-03 04:01:26 +02:00
Ben Noordhuis
c03964f840
unix: set PTHREAD_MUTEX_ERRORCHECK in debug mode
2012-06-03 03:53:05 +02:00
Bert Belder
d8b95eaffb
windows: inline a couple of handle functions
2012-06-02 23:38:16 +02:00
Bert Belder
d402604118
windows: inline a couple of inline request functions
2012-06-02 23:08:22 +02:00
Bert Belder
ed30365f54
uv-common: define INLINE macro
2012-06-02 23:06:43 +02:00
Bert Belder
dd1355da8d
windows: stop poll watcher when watched socket is closed locally
2012-06-02 22:36:52 +02:00
Bert Belder
bdb8b3a1f2
windows: always set FDs 0-2 for spawned child processes
2012-06-02 21:17:03 +02:00
Bert Belder
619686e9e9
windows: fix fall-through bug in init_child_stdio()
2012-06-02 21:05:06 +02:00
Bert Belder
d21fc6c333
windows: move uv_hrtime() to util.c
...
* It has nothing to do with timer handles, so it doesn't belong in
timer.c
* uv_hrtime_init() was merged into uv__util_init()
2012-06-02 20:37:08 +02:00
Bert Belder
ec95a07d00
windows/util: move initialization code to uv__util_init
2012-06-02 20:35:14 +02:00
Bert Belder
cd1298c388
windows: retrieve function pointers before doing anything else
2012-06-02 20:20:51 +02:00
Bert Belder
1d64a36caa
windows: add support for cpu times to uv_cpu_info()
...
* Also cleans up the code and makes it use unicode APIs consistently.
* Credits go to Brian White for creating an earlier version of this
patch.
Closes #327
2012-06-02 20:05:12 +02:00
Brian White
4252240e54
windows: add uv__once_init() that ensures that libuv has been initialized
2012-06-02 20:05:12 +02:00
Brian White
87f3530a1e
windows: retrieve NtQuerySystemInformation at startup
2012-06-02 20:05:11 +02:00
Bert Belder
120d997809
windows: fix NTSTATUS redefined when compiling with MinGW
...
Closes #403
Closes #422
2012-06-02 17:39:31 +02:00
Bert Belder
961e0cf8da
windows/tty: never report error after forcibly aborting line-buffered read
2012-06-02 03:08:48 +02:00
Bert Belder
07f0175239
windows: fix hang when closing an active poll handle
2012-06-01 18:39:49 +02:00
Bert Belder
3ec9c67f93
windows: improve spawn stdio support
...
* Make using an existing stream for stdio actually work
* Support up to 256 stdio channels
* Fix some minor bugs
2012-06-01 17:47:20 +02:00
Fedor Indutny
f5b5127db0
change spawn() api to allow using existing streams for stdio
...
This commit also adds support for this api on Unix.
2012-06-01 17:32:27 +02:00
Bert Belder
528123ad9a
windows: fix bugs in uv__fast_poll_cancel_poll_req
2012-06-01 03:05:31 +02:00
Charlie McConnell
69a923bf93
process: implement UV_PROCESS_DETACHED flag for uv_spawn
2012-06-01 02:24:05 +02:00
Bert Belder
aecddfe530
windows: style fix
2012-05-31 17:35:25 +02:00
Bert Belder
0c727fd774
windows: don't crash
2012-05-31 17:34:53 +02:00
Ben Noordhuis
c9396dd57e
unix: implement timers in libuv
...
* replace libev backed timers with a pure libuv implementation
* gut ev_run() and make it take a timeout instead of flags
Incidentally speeds up the loop_count_timed benchmark by about 100%.
2012-05-31 03:08:34 +02:00
Ben Noordhuis
71a66c17a1
unix: mark eio poll handles as internal
2012-05-30 02:33:50 +02:00
Ben Noordhuis
171ad8567d
unix, windows: add uv_walk()
...
Lets the libuv user iterate over the open handles. Mostly intended as a
debugging tool or a post-hoc cleanup mechanism.
2012-05-30 02:33:39 +02:00
Ben Noordhuis
122cd94695
unix: remove unused flag UV__PENDING
2012-05-30 01:34:11 +02:00
Ben Noordhuis
9d26f49725
unix, windows: rename flags UV__ACTIVE, UV__REF
...
Rename UV__ACTIVE and UV__REF to UV__HANDLE_ACTIVE and UV__HANDLE_REF to make
it clear that they apply to handles, not requests or loops.
2012-05-30 01:30:24 +02:00
Ben Noordhuis
58a272e556
unix: rework pending handle/req logic
2012-05-30 00:08:22 +02:00
Bert Belder
7556590707
win/process.c: stdio fd should default to ignore
2012-05-29 00:53:04 +02:00
Ben Noordhuis
18e622d43e
unix: fix indentation in sunos.c
2012-05-29 00:09:47 +02:00
Bert Belder
81aff93633
win/process.c: remove unused function duplicate_std_handle
2012-05-29 00:06:11 +02:00
Ben Noordhuis
4690204682
unix: fix getaddrinfo bad pointer deref
2012-05-29 00:06:11 +02:00
Fedor Indutny
c0081f0e66
unix: allow specifying FDs to be inherited by a child process
...
Previously the only option was to create a pipe or an ipc channel. This
patch makes it possible to inherit a handle that is already open in the
parent process. It also makes it possible to set more than just stdin,
stdout and stderr.
2012-05-29 00:05:12 +02:00
Igor Zinkovsky
5a34f19970
windows: allow specifying FDs to be inherited by a child process
...
Previously the only option was to create a pipe or an ipc channel. This
patch makes it possible to inherit a handle that is already open in the
parent process. There is also room for setting more than just stdin,
stdout and stderr, although this is not supported yet.
2012-05-28 23:59:58 +02:00
Bert Belder
e4f23aacec
Get rid of UV_LEAN_AND_MEAN
2012-05-28 01:53:22 +02:00
Ben Noordhuis
2ec09862e4
unix, windows: set active flag on unref'd handles
...
A logic bug in uv__handle_start() and uv__handle_stop() stopped the active flag
from getting set (or unset) on unref'd handles.
2012-05-28 00:24:39 +02:00
Ben Noordhuis
028fef84b8
unix: update timer if already active
...
uv_timer_start() no longer returns an error when the timer is already active,
now it just updates the timer. Consistent with the uv-win implementation.
Fixes #425 .
2012-05-26 02:09:59 +02:00
Ben Noordhuis
ce28e13038
unix: remove unused __attribute__((unused))
2012-05-25 01:24:17 +02:00
isaacs
604802ad47
Fix sunos build: undeclared variable 'handle'
2012-05-24 23:00:31 +02:00
Ben Noordhuis
752ac30ec8
unix: don't pass sockaddr to accept()
...
Shaves a few nanoseconds off the accept() syscall.
2012-05-24 14:31:53 +02:00
Ben Noordhuis
cff2221fbf
unix: split up loop.c
...
Move prepare/check/idle watcher code to loop-watcher.c so it can be reused for
the linux backend.
2012-05-23 23:47:06 +02:00
Ben Noordhuis
890d443558
unix: shave about 100 bytes off uv_udp_send_t
2012-05-23 23:21:08 +02:00
Ben Noordhuis
e71495c84a
unix: turn field stream->blocking into a flag
...
Saves 4 bytes.
2012-05-23 22:48:57 +02:00
Ben Noordhuis
5fd2c406f1
unix: fix up asserts in core.c and stream.c
2012-05-23 22:19:12 +02:00
Ben Noordhuis
2609e43632
unix: remove unnecessary functions in udp.c
2012-05-23 21:18:40 +02:00
Ben Noordhuis
2b09cc2246
unix: fix up asserts in udp.c
2012-05-23 21:08:40 +02:00
Ben Noordhuis
7c8313bd0f
unix, windows: make uv_run_once() return a bool
...
The return value of uv_run_once() now signals if it needs to be called again.
Fixes #427 .
2012-05-23 20:49:03 +02:00
Ben Noordhuis
3604b8ddd3
unix: don't unlink UNIX socket on EADDRINUSE
...
It was a bad idea to start with...
2012-05-23 14:06:32 +02:00
Ben Noordhuis
2e3e658be1
unix: fix uv_poll CPU usage spike
...
Saúl Ibarra Corretgé reports that calling uv_poll_start() repeatedly results
in CPU usage spikes. Fixed by stopping the poll I/O watcher before updating it.
Fixes #424 .
2012-05-23 12:52:44 +02:00
Ben Noordhuis
5b9c45120a
unix: fold uv__io_cb into ev_io struct
...
Makes the uv__io code a little more obscure but has the advantage that
sizeof(uv__io_t) == sizeof(ev_io), i.e. the sizes of embedding handles
don't change.
2012-05-23 03:57:08 +02:00
Ben Noordhuis
3bc9707054
unix: replace ev_io with uv__io_t
...
Replace ev_io usage with wrapper constructs.
This is preliminary work for the transition to a libev-less linux backend.
2012-05-23 03:42:32 +02:00
Igor Zinkovsky
2df831723f
windows: set flags for uv_fs_symlink
2012-05-22 16:32:17 -07:00
Igor Zinkovsky
253d718572
report correct error
2012-05-22 15:58:01 -07:00
Bert Belder
58ba2d86e1
Move shared c-ares glue code from uv-common to cares.c
2012-05-22 16:11:23 +02:00
Bert Belder
c06edd4c88
windows, unix: share c-ares glue code
2012-05-22 16:11:22 +02:00
Ben Noordhuis
80b554129b
unix: reactive new idle watcher implementation
...
The new idle watcher was temporarily disabled in 073a48d due to some semantic
incompatibilities with the previous implementation. This commit resolves those
issues and reactivates the new implementation.
One outstanding bug is that idle watchers can run in a different order
(relative to other handle types) than the old implementation, e.g. (timer, idle)
instead of the expected (idle, timer). This will be fixed in an upcoming commit.
2012-05-22 15:13:52 +02:00
Ben Noordhuis
6190caba05
unix: remove outdated comment
2012-05-22 15:08:29 +02:00
Bert Belder
ad279df7c0
Unix: remove superfluous variable from uv_poll_start
2012-05-22 01:03:47 +02:00
Ben Noordhuis
6fd9bfb7b0
unix: fix event loop block, prepare/check invoke
...
Don't block in epoll_wait() / kevent() / etc. syscall unless there are active
handles. If there are only active requests, do a non-blocking poll.
Likewise, don't run the prepare and check watchers unless there are active
handles *or* requests.
2012-05-21 17:41:52 +02:00
Ben Noordhuis
e82d46452e
unix: fix close-before-connect bug
...
Closing the TCP socket before the SYN/ACK handshake completed hung the event
loop, the connect req didn't get unregistered.
2012-05-18 01:19:57 +02:00
Ben Noordhuis
e10a87adb9
unix: streamline shutdown req cleanup logic
2012-05-18 01:19:57 +02:00
Ben Noordhuis
073a48d6bf
unix: back out new idle watcher for now
...
Its semantics don't quite match what node.js expects. This breaks the
stdio_over_pipes and shutdown_close_pipe tests but that can't be helped.
2012-05-18 01:19:56 +02:00
Igor Zinkovsky
60af28abab
windows: support junctions with uv_fs_synlink
...
based on @piscisaureus implementation
2012-05-17 09:53:26 -07:00
Ben Noordhuis
9efa8b3571
unix, windows: rework reference counting scheme
...
This commit changes how the event loop determines if it needs to stay alive.
Previously, an internal counter was increased whenever a handle got created
and decreased again when the handle was closed.
While conceptually simple, it turned out hard to work with: you often want
to keep the event loop alive only if the handle is actually doing something.
Stopped or inactive handles were a frequent source of hanging event loops.
That's why this commit changes the reference counting scheme to a model where
a handle only references the event loop when it's active. 'Active' means
different things for different handle types, e.g.:
* timers: ticking
* sockets: reading, writing or listening
* processes: always active (for now, subject to change)
* idle, check, prepare: only active when started
This commit also changes how the uv_ref() and uv_unref() functions work: they
now operate on the level of individual handles, not the whole event loop.
The Windows implementation was done by Bert Belder.
2012-05-17 07:07:53 +02:00
Frank Denis
07622e767d
unix: change #if FIONBIO to #ifdef FIONBIO
...
Fixes compilation on Debian/ppc 6.0.4.
2012-05-16 16:59:42 +02:00
Ben Noordhuis
b5f9bc861f
sunos: make fs.watch scale better
...
Instead of using one port per watch, use one port for all the watches.
This is a cherry-pick of commit 7326962 from v0.6 into master.
Conflicts:
include/uv-private/uv-unix.h
src/unix/core.c
src/unix/sunos.c
2012-05-05 00:51:32 +00:00
Bert Belder
1d24c76df7
Windows: fix MinGW
...
MinGW's headers are missing a definition for SIO_BASE_HANDLE
2012-05-05 00:05:36 +02:00
Bert Belder
4365896921
Windows: skip GetFileAttributes call when opening a file
...
It wasn't working, and everything seemed to work fine nonetheless. Removing it just saves a syscall.
2012-05-04 14:31:48 -07:00
Bert Belder
b750dec517
Windows: fix iocp emulation bugs for tcp handles
...
Makes ipc_tcp_connection pass on Windows XP
2012-05-04 13:54:02 -07:00
Ben Noordhuis
6037684ef8
unix: zero out new loop struct
...
Fixes spurious segfaults in pyuv.
2012-05-04 15:02:33 +02:00
Ben Noordhuis
ce129ac6e2
windows: remove unused variables
2012-05-03 19:50:49 +02:00
Ben Noordhuis
395e256889
unix: don't use setlocale()
...
setlocale() is not inherently thread-safe. We'll have to live with the fact
that test/test-dlerror.c fails on systems with localized error messages.
2012-05-03 19:50:40 +02:00
Ben Noordhuis
5d19aa84f0
unix, win: rework uv_dlopen() API
2012-05-03 19:36:40 +02:00
Ben Noordhuis
93d16e6a84
unix: change uv_dl*() error code
...
Return UV_ENOENT instead of UV_EINVAL. UV_EINVAL was arbitrarily chosen and
turns out to be inconsistent with the Windows implementation.
Fixes #395 .
2012-05-03 16:54:59 +02:00
Bert Belder
b9504f7987
Rename uv_platform_socket_t to uv_os_sock_t
2012-05-03 16:05:05 +02:00
Bert Belder
d60d94e0c3
Unix: implement uv_poll
2012-05-03 15:52:56 +02:00
Bert Belder
d7a71761c4
Windows: implement uv_poll
2012-05-03 15:52:52 +02:00
Bert Belder
e38755485e
Unix: namespace stream handle flags
2012-05-03 01:47:13 +02:00
Ben Noordhuis
1ebe14e494
linux: fix build error with old kernel headers
...
O_CLOEXEC was introduced in linux 2.6.23, don't assume it's available.
Fixes #400 .
2012-05-02 17:42:59 +02:00
Bert Belder
19aca7a7c0
Windows: add uv_msafd_poll, to support overlapped socket polling
2012-05-02 03:45:00 +02:00
Bert Belder
9f0dc2601e
Windows: fetch pointer for CancelIoEx on startup
2012-05-02 03:38:31 +02:00
Bert Belder
7d45cca12a
Windows: we're out of handle flags - arrange them more efficiently
2012-05-02 03:38:30 +02:00
Bert Belder
6367da25b3
Merge branch 'v0.6'
2012-05-01 16:54:27 +02:00
Ben Noordhuis
936795a2c8
windows: map ERROR_WRITE_PROTECT to UV_EROFS
2012-05-01 16:53:00 +02:00
Maciej Małecki
edb40b16ce
unix: map EROFS to UV_EROFS
...
Conflicts:
src/unix/error.c
2012-05-01 16:52:48 +02:00
Fedor Indutny
0efa3cf4d3
err: handle EIO errors on win/unix
2012-05-01 16:43:00 +02:00
Bert Belder
c7edea997e
Merge branch 'v0.6'
2012-05-01 16:21:11 +02:00
Bert Belder
32f6f6e2c7
Windows: map ERROR_NOT_SAME_DEVICE to UV_EXDEV
2012-05-01 16:20:52 +02:00
Keno Fischer
d13b1e0803
Windows: fix uv_fs_ftruncate to compile with Mingw32
...
Close : #382 , #397
Ref: #381
2012-04-29 02:32:27 +02:00
Ben Noordhuis
fac3b68fff
linux: add IN_MOVE_SELF to inotify event mask
...
Partially fixes joyent/node#3172 , behavior is now consistent with inotifywait.
2012-04-28 02:47:58 +02:00
Bert Belder
99a995a6b8
uv_spawn: support setting the child process' user and group id
2012-04-28 02:38:41 +02:00
Bert Belder
c862acc609
Windows: add mappings for UV_ENOENT
2012-04-28 02:09:29 +02:00
isaacs
b26fdde181
Map ENOMEM to UV_ENOMEM
2012-04-28 02:09:17 +02:00
Bert Belder
d41cc9118d
Windows: uv_spawn2 reports the wrong error when setuid/setgid is specified
2012-04-27 21:58:44 +02:00
Bert Belder
aea5db5da1
Windows: add mappings for UV_ENOENT
2012-04-27 21:24:27 +02:00
Bert Belder
c42ba103b7
Temporary API to support spawn with uid and gid options
2012-04-27 17:41:56 +02:00
Luis Lavena
b6e3dcc799
Windows: actually detect mingw-w64 and not 64 bits mode
...
__MINGW64__ is only defined when using mingw-w64 in 64bits mode, not when
using the 32bits version of the compiler.
Instead, to detect usage of mingw-w64 instead of mingw version of GCC we
should look at __MINGW64_VERSION_MAJOR and __MINGW64_VERSION_MINOR. If one
of these is defined means we are running on mingw-w64 compiler and headers
and not mingw.org build.
Read more here: http://bit.ly/detect-mingw-w64-vs-mingw
Closes #384
2012-04-25 04:06:53 +02:00
Ben Noordhuis
06ae804e03
linux: add IN_MOVE_SELF to inotify event mask
...
Partially fixes joyent/node#3172 , behavior is now consistent with inotifywait.
2012-04-25 01:27:43 +02:00
Bert Belder
42a86693a7
Windows: set loop counters to zero in uv_loop_init
2012-04-25 00:30:07 +02:00
Bert Belder
1b6329dd3e
Style fixes
2012-04-25 00:30:07 +02:00
Ben Noordhuis
84d2f82a68
windows: rename local var errno to errorno
...
Fixes compiler warning: ‘_errno’ redeclared without dllimport attribute:
previous dllimport ignored.
2012-04-23 12:10:38 -07:00
Igor Zinkovsky
e6d4bca2ec
remove left-over cast fixes #3160
2012-04-23 10:52:53 -07:00
Ben Noordhuis
1f001fe917
unix: remove kqueue cb == NULL check
...
The other implementations don't check for it and it's making the counters_init
test fail.
2012-04-23 17:55:57 +02:00
Ben Noordhuis
21bee8c36f
unix: call pipe handle connection cb on accept() error
2012-04-22 19:32:47 +02:00
Ben Noordhuis
cf6dc082ca
unix: handle EWOULDBLOCK in uv__read()
2012-04-22 19:32:47 +02:00
Ben Noordhuis
01cc491853
unix: handle EWOULDBLOCK in uv__write()
2012-04-22 19:32:47 +02:00
Ben Noordhuis
df22d5935e
unix: handle EWOULDBLOCK in uv__server_io()
2012-04-22 19:32:46 +02:00
Ben Noordhuis
73cc3677fc
unix: map EWOULDBLOCK to UV_EAGAIN
2012-04-22 19:32:46 +02:00
Ben Noordhuis
1fa1c5106a
unix: call pipe handle connection cb on accept() error
2012-04-21 06:11:38 +02:00
Ben Noordhuis
a55a33625e
unix: handle EWOULDBLOCK in uv__read()
2012-04-21 06:11:38 +02:00