[systemd-devel] Perl Net::DBus, org.freedesktop.system1 and inhibitor locks

Michael Hirmke mh at mike.franken.de
Wed May 25 19:54:00 UTC 2016


Hi again,

[...]
>>> - I am not able to close the file descriptor in the pre block of the
>>>   signal handler. Whenever I try, I get an error, that the descriptor
>>>   is closed.

>>This suggests something else closed the fd for you?

>Yes, but who or what might that be?
>As I wrote above - at the moment I'm the only one using the system and I
>have no idea, what component might fiddle with my file descriptors.
>Do you have any hint, how I could find that out / debug it?

>And there is the fact, that the lock is still in the list of inhibitors.
>As far as I understand the docs, the entry should be gone when the fd is
>closed.

forget about that question - I have never asked it 8-((

It was a really stupid error in my perl code - the file descriptor was
never open. I got a file handle, but didn't realize that I have to open
it myself. Now it works as expected.

>>Lennart


Bye.
Michael.
-- 
Michael Hirmke


More information about the systemd-devel mailing list