Thiago Macieira thiago at kde.org
Tue Nov 6 06:42:21 PST 2012

On terça-feira, 6 de novembro de 2012 09.07.05, Manuel Reimer wrote:
> Martin Vidner <mvidner at ...> writes:
> > 'h' is UNIX_FD, a newly added type, which is used in this API:
> > method QString org.freedesktop.login1.Manager.CreateSession(...[!],
> > 
> >    QDBusUnixFileDescriptor& fd, ...)
> > 
> > You could avoid it by avoiding the introspection call, I don't know
> > whether the Perl bindings can do that.
> I managed to fix that by adding the new type to the relevant lists and make
> the modules handle it like an int32. AFAIR Perl has routines to operate on
> file descriptors by number, so an "int32" seems to be a valid return value.
> I'll try to contact the author to send him my fix.
> ... but I'm getting unsure, if my solution is the right one, anyway... The
> much easier solution would be to just prefix my ExecStart command in my
> systemd service file with "systemd-inhibit ....".

Remember that the library dup()s the file descriptor before giving it to you. 
You need to remember to close it later, otherwise you'll leak them.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20121106/54e27898/attachment.pgp>

More information about the dbus mailing list