Browse Source

Fix windows build

v0.7.4-release
Ryan Dahl 13 years ago
parent
commit
4f59041990
  1. 1
      node.gyp
  2. 4
      src/node.cc

1
node.gyp

@ -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',

4
src/node.cc

@ -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"));

Loading…
Cancel
Save