Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
bb07300
)
Merge branch 'timeheap'
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 31 Dec 2016 19:26:22 +0000
(20:26 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 31 Dec 2016 19:27:38 +0000
(20:27 +0100)
This should fix the mblock-related iteration bug in mtio-epoll.
lib/mtio-kqueue.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/mtio-kqueue.c
b/lib/mtio-kqueue.c
index
e317153
..
0ae9ccf
100644
(file)
--- a/
lib/mtio-kqueue.c
+++ b/
lib/mtio-kqueue.c
@@
-262,6
+262,8
@@
int ioloop(void)
}
}
now = time(NULL);
+ /* XXX: This is inefficient and buggy, and should have the
+ * heap structure from mtio-epoll ported. */
for(bl = blockers; bl; bl = nbl) {
nbl = bl->n;
if((bl->to != 0) && (bl->to <= now)) {