[Pkg-xfce-devel] Bug#829557: Bug#829557: Bug#829557: firefox: error box at start-up / D-BUS related issue

Yves-Alexis Perez corsac at debian.org
Mon Jul 11 14:05:50 UTC 2016


On Mon, 2016-07-11 at 06:46 -0700, Vincent Lefevre wrote:
> On 2016-07-11 13:03:55 +0200, Yves-Alexis Perez wrote:
> > So it seems stdin is closed for the second login. Could it break dbus-
> > launch/dbus-daemon somehow?
> 
> In general, closing stdin is a bad idea, at least under Linux,
> because if a new file needs to be opened by the process or one of
> its descendants, fd 0 will be reused (while it is not expected to
> correspond to stdin), and this may clash with other functions that
> try to read stdin (= fd 0)...

Well, lightdm is not explicitely closing /dev/stdin. And adding checks for (fd
== 0) before every close() call might not be the best practice either.

Regards,
-- 

Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20160711/8fdffa03/attachment.sig>


More information about the Pkg-xfce-devel mailing list