Closed danaru closed 5 years ago
The problem is a bit more fundamental than that.
After dc0127c5f1bcc0983d60915ac7d96a1248d8f347, I only see the process keep one open FD For /run/systemd/inhibit/
«n».ref
, instead of 2 as before (and as you report). Can you confirm it fixes the problem for you?
Yes, it fixes the problem Thanks a lot
One more question , when will be next release?
On Sun, Sep 15, 2019 at 12:59 AM ldo notifications@github.com wrote:
Closed #21 https://github.com/ldo/dbussy/issues/21.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ldo/dbussy/issues/21?email_source=notifications&email_token=ABDWN32IFJLAQLTWMHLEH2DQJVNEFA5CNFSM4IVQ2KPKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTUCRB7I#event-2634354941, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDWN3Z2RZMXEPRYMRBGFY3QJVNEFANCNFSM4IVQ2KPA .
--
Hello, First of all thank you for sharing and maintaining this library. I'm using dbussy to obtain login1.Manager Inhibit lock as follows:
Getting file descriptor from reply will return duplicated FD and closing returned FD will release Inhibit lock. From documentations of dbus_message_iter_append_basic():
However original FD not closed since PendingCall.await_reply..pending_done not released.
python3 14154 root 7w FIFO 0,22 0t0 225 /run/systemd/inhibit/16.ref
python3 14154 root 8w FIFO 0,22 0t0 225 /run/systemd/inhibit/16.ref
Checking with gc return the following references:
Proposed fix: