dbus bugfix - close inherited filedescriptors

Markus Rechberger mrechberger at empiatech.com
Thu May 15 15:15:01 PDT 2008


Hi,

when the dbus library spawns out dbus-launch it
inherits all the filedescriptors from the parent.
This causes problems in several ways for example when
the inherited file is a devicenode, it won't be closed
until dbus gets shut down.
As for multimedia devices when mplayer starts up and
opens for example the video4linux node dbus will
inherit that filedescriptor and the device will never
be closed. For devices which support multiple
devicemodes this lock the device in the certain mode.

Attached a patch which fixes that problem.

Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-fix-inherited-fds.diff
Type: text/x-diff
Size: 722 bytes
Desc: 3456086339-dbus-fix-inherited-fds.diff
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080516/bcc1ae6a/attachment.diff 


More information about the dbus mailing list