[systemd-devel] Disabled event sources / errors on sd-bus break the event loop (Looping too fast)
David Herrmann
dh.herrmann at gmail.com
Tue Sep 29 03:27:33 PDT 2015
Hi
On Sat, Sep 26, 2015 at 7:56 PM, Krzysztof Kotlenga <k.kotlenga at sims.pl> wrote:
> David Herrmann wrote:
>
>> Krzysztof Kotlenga wrote:
>>> Krzysztof Kotlenga wrote:
>>>
>>>> 2. Maybe I don't get something right - please enlighten me if
>>>> that's the case - but prioq_put or rather shuffle_up function is
>>>> buggy.
>>>>
>>>> (...)
>>>>
>>>> Am I wrong to believe that it should have swapped 2 and 1, not 2
>>>> and 0?
>>>
>>> OK, I've finally realised that I'm a moron iterating over a
>>> heap-like structure...
>>
>> For the archives: Is this fixed with the prioq-compare fix?
>
> The point quoted above was bogus, but otherwise yes - the main issue
> here is fixed with the said fix.
>
> Some more or less minor points still stand though:
>
> - errored/disabled bus-inputs are never freed, even after client
> disconnect (!)
What's a "bus-input"?
> - data pointer comparison instead of index comparison for prioq
> stability. Is this _really_ correct? Anyway, I made a pull
> request...
-> https://github.com/systemd/systemd/pull/1393
Thanks
David
More information about the systemd-devel
mailing list