# HG changeset patch # User Karl Heuer # Date 801776992 0 # Node ID 50c7c05fc30112a90c48ffb6e14316096ad01faf # Parent d330b9cd352974cf1ff47c5faae62ca68be3f8ed (x_term_init): Block input during this function. diff -r d330b9cd3529 -r 50c7c05fc301 src/xterm.c --- a/src/xterm.c Mon May 29 19:46:24 1995 +0000 +++ b/src/xterm.c Mon May 29 19:49:52 1995 +0000 @@ -5601,6 +5601,8 @@ struct x_display_info *dpyinfo; XrmDatabase xrdb; + BLOCK_INPUT; + if (!x_initialized) { x_initialize (); @@ -5643,7 +5645,10 @@ /* Detect failure. */ if (dpy == 0) - return 0; + { + UNBLOCK_INPUT; + return 0; + } /* We have definitely succeeded. Record the new connection. */ @@ -5817,6 +5822,8 @@ init_sigio (connection); #endif /* ! defined (SIGIO) */ + UNBLOCK_INPUT; + return dpyinfo; }