Merge branch 'timeheap'
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 31 Dec 2016 19:26:22 +0000 (20:26 +0100)
committerFredrik 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

index e317153..0ae9ccf 100644 (file)
@@ -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)) {