GNOME Bugzilla – Bug 342831
gdm could provide -nodaemon option for compatibility
Last modified: 2006-05-24 21:17:49 UTC
Hi, A couple of weeks ago GDM lost the "-nodaemon" option when it transitioned over to using GOption. This ended up causing problems in Fedora because our init scripts passed the old option and so GDM daemonized on start up. This causes problems because we have code to watch for it to exit and restart it automatically. Since it daemonizes, it exits immediately and we end up restarting it over and over again in a tight loop causing the user's CPU usage to jump to 100%. See http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=192461 for more details. One potential solution would have been to change our initscripts to use --nodaemon instead of -nodaemon. This would be a bit awkward because we use the same scripts for KDM and XDM and they only supported the one-dash variant of -nodaemon. Another option would be to add support back to GDM for -nodaemon. Arguably, the command line interface of GDM is part of it's API, so it would be nice if it still supported the -nodaemon option for backward compatibility with itself and XDM.
Created attachment 66144 [details] [review] Add back support for -nodaemon I built this patch into Rawhide last night and it seemed to fix the problem for users. It's a tiny patch that makes gdm treat -nodaemon like --nodaemon.
Thanks, Ray, for fixing this. Patch applied to CVS head.