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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Pkg-xfce-devel mailing list
Pkg-xfce-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xfce-devel

Reply via email to