GNOME Bugzilla – Bug 136942
why retry 4 times?
Last modified: 2004-05-29 01:54:16 UTC
Why does GDM need to retry 4 times to start the X server? Why would the same server, with teh same configuration not work 3 times, but then work the 4th? It is totally annonying to have to sit and wait for it to start X 4 times in the case of a problem. And I dont think it really could solve a problem: so. I suggest it be set to 1 time.
I changed it to 3 times just today, but yes it does make sense to try more then 1 time because of possible races. There are times when X will in fact start in a few seconds when it can't start right away on system startup. That's why it's done.
I don't get it. One can assume if one "starts X", it will do one of two things a) successfully start or b) not. In the case of a, it may take an unknown length of time for it to be ready to connect to. In the case of b, it will never happen. What happens is that in the case of b, GDM starts X again. I don't see why it can't just attempt to start X, and then attempt to connect to it for N number of tries... no need to start another instance of the X server when it clearly exited with an error code. I must be missing something.