Skip to content

Commit

Permalink
uv: Upgrade to 86ae8b3c
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 25, 2013
1 parent b0e7dbf commit ff540e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion deps/uv/gyp_uv
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def compiler_version():
proc = subprocess.Popen(CC.split() + ['--version'], stdout=subprocess.PIPE)
is_clang = 'clang' in proc.communicate()[0].split('\n')[0]
proc = subprocess.Popen(CC.split() + ['-dumpversion'], stdout=subprocess.PIPE)
version = tuple(map(int, proc.communicate()[0].split('.')))
version = proc.communicate()[0].split('.')
version = map(int, version[:2])
version = tuple(version)
return (version, is_clang)


Expand Down
11 changes: 5 additions & 6 deletions deps/uv/src/unix/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,14 @@ void uv_pipe_connect(uv_connect_t* req,
uv_strlcpy(saddr.sun_path, name, sizeof(saddr.sun_path));
saddr.sun_family = AF_UNIX;

/* We don't check for EINPROGRESS. Think about it: the socket
* is either there or not.
*/
do {
r = connect(handle->fd, (struct sockaddr*)&saddr, sizeof saddr);
}
while (r == -1 && errno == EINTR);

if (r == -1)
goto out;
if (errno != EINPROGRESS)
goto out;

if (new_sock)
if (uv__stream_open((uv_stream_t*)handle,
Expand All @@ -216,8 +214,9 @@ void uv_pipe_connect(uv_connect_t* req,
req->cb = cb;
ngx_queue_init(&req->queue);

/* Run callback on next tick. */
uv__io_feed(handle->loop, &handle->write_watcher, UV__IO_WRITE);
/* Force callback to run on next tick in case of error. */
if (err != 0)
uv__io_feed(handle->loop, &handle->write_watcher, UV__IO_WRITE);

/* Mimic the Windows pipe implementation, always
* return 0 and let the callback handle errors.
Expand Down

0 comments on commit ff540e1

Please sign in to comment.