Mercurial > emacs
changeset 11997:50c7c05fc301
(x_term_init): Block input during this function.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 29 May 1995 19:49:52 +0000 |
parents | d330b9cd3529 |
children | 3c3f3bbe311f |
files | src/xterm.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }