Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Oct 11, 2011
1 parent cdf5d91 commit 4f59041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion node.gyp
Expand Up @@ -95,7 +95,6 @@
'src/handle_wrap.h',
'src/node.h',
'src/node_buffer.h',
'src/node_cares.h',
'src/node_constants.h',
'src/node_crypto.h',
'src/node_dtrace.h',
Expand Down
4 changes: 4 additions & 0 deletions src/node.cc
Expand Up @@ -1355,7 +1355,11 @@ static Handle<Value> WriteError (const Arguments& args) {
r = write(STDERR_FILENO, (*msg) + written, msg.length() - written);
if (r < 0) {
if (errno == EAGAIN || errno == EIO) {
#ifdef __POSIX__
usleep(100);
#else
Sleep(100);
#endif
continue;
}
return ThrowException(ErrnoException(errno, "write"));
Expand Down

0 comments on commit 4f59041

Please sign in to comment.