XQuartz: A 2 second delay for launchd socket connections should be sufficient.

This commit is contained in:
Jeremy Huddleston 2008-05-23 02:27:58 -07:00
parent 83f7252939
commit 2bb4251b3c

View File

@ -437,8 +437,10 @@ int main(int argc, char **argv, char **envp) {
} }
#else #else
void *add_launchd_display_thread(void *data) { void *add_launchd_display_thread(void *data) {
/* TODO: Really fix this race */ /* TODO: Really fix this race... we want xinitrc to finish before connections
sleep(5); * are accepted on the launchd socket.
*/
sleep(2);
/* Start listening on the launchd fd */ /* Start listening on the launchd fd */
int launchd_fd = launchd_display_fd(); int launchd_fd = launchd_display_fd();