Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e24c1
)
Fixed a bug in the MT ioloop.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 1 Jan 2009 04:03:37 +0000
(
05:03
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 1 Jan 2009 04:03:37 +0000
(
05:03
+0100)
lib/mtio.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/mtio.c
b/lib/mtio.c
index
2a46369
..
3bb7b86
100644
(file)
--- a/
lib/mtio.c
+++ b/
lib/mtio.c
@@
-115,7
+115,7
@@
void ioloop(void)
ev |= EV_WRITE;
if(FD_ISSET(bl->fd, &efds))
ev = -1;
- if(
ev != 0
)
+ if(
(ev < 0) || (ev & bl->ev)
)
resume(bl->th, ev);
else if((bl->to != 0) && (bl->to <= now))
resume(bl->th, 0);