projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f80cc69
)
libeio bugfix part 4
author
Ryan Dahl
<ry@tinyclouds.org>
Wed, 6 Jan 2010 09:47:56 +0000
(
01:47
-0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Wed, 6 Jan 2010 09:53:34 +0000
(
01:53
-0800)
Oops. Last commit broke a few tests. Should work now!
src/node.cc
patch
|
blob
|
history
diff --git
a/src/node.cc
b/src/node.cc
index
1da6d0c
..
5841937
100644
(file)
--- a/
src/node.cc
+++ b/
src/node.cc
@@
-383,7
+383,9
@@
static Handle<Value> ByteLength(const Arguments& args) {
static Handle<Value> Loop(const Arguments& args) {
HandleScope scope;
- if (eio_poll() == -1) ev_idle_start(EV_DEFAULT_UC_ &eio_poller);
+ // TODO Probably don't need to start this each time.
+ // Avoids failing on test/mjsunit/test-eio-race3.js though
+ ev_idle_start(EV_DEFAULT_UC_ &eio_poller);
ev_loop(EV_DEFAULT_UC_ 0);
return Undefined();