GNOME Bugzilla – Bug 631465
Daemon started with --login should exit after a timeout
Last modified: 2010-12-13 10:11:44 UTC
When the daemon is started by the PAM module, it might not be used at all if the daemon is not started later in the session. It just remains here doing nothing. This is a problem if you log in to a non-gnome session. It also happens when you use a GDM flexible server to log in to an already started session. The PAM module starts the daemon again, but it is never used since just after that, GDM just uses switchvt to send you to the VT where the existing session lies.
Created attachment 171789 [details] [review] Proposed implementation This naive patch adds a 10-seconds timeout which exits if it hasn’t been initialized in the meantime.
Created attachment 171790 [details] [review] Proposed implementation Cosmetic improvement: don’t wake up after 10 seconds if unnecessary.
Committed with a higher timeout. commit bb033e7513ec8123124e5e57c82c0ede029eda74 Author: Josselin Mouette <joss@malsain.org> Date: Tue Oct 19 02:09:49 2010 +0000 [daemon] Add timeout if PAM startup doesn't complete shortly. When the daemon is started by the PAM module, it might not be used at all if the daemon is not started later in the session.
*** Bug 593772 has been marked as a duplicate of this bug. ***