Fix initialization order at bootstrap (Dan Nicolaescu).
authorKaroly Lorentey <lorentey@elte.hu>
Mon, 29 Mar 2004 12:05:03 +0000 (12:05 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Mon, 29 Mar 2004 12:05:03 +0000 (12:05 +0000)
src/emacs.c (main): Call init_process before init_display to prevent
losing the keyboard on stdin (reported by Dan Nicolaescu).

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-128

src/emacs.c

index 43d2f85..1c7d595 100644 (file)
@@ -1578,6 +1578,7 @@ main (argc, argv
 #endif  /* end #ifdef HAVE_NTGUI */
     }
 
+  init_process (); /* init_display uses add_keyboard_wait_descriptor. */
 #ifndef MAC_OS8
   /* Called before init_window_once for Mac OS Classic.  */
   init_keyboard ();    /* This too must precede init_sys_modes.  */
@@ -1604,7 +1605,6 @@ main (argc, argv
 #ifdef VMS
   init_vmsfns ();
 #endif /* VMS */
-  init_process ();
 #ifdef HAVE_SOUND
   init_sound ();
 #endif