[systemd-devel] Disabled event sources / errors on sd-bus break the event loop (Looping too fast)

Krzysztof Kotlenga k.kotlenga at sims.pl
Wed Sep 23 10:20:11 PDT 2015


Krzysztof Kotlenga wrote:

> Two things:
> (...)

One more. Prioq compare functions in sd-event.c contain this:

/* Stability for the rest */
if (x < y)
        return -1;
if (x > y)
        return 1;


How comparing prioq_item.data pointers is going to ensure stability?
Shouldn't it be:

if (x->prepare_index < y->prepare_index)
        ...

and so on?

-- 
kjk


More information about the systemd-devel mailing list