diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-05-29 19:49:52 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-05-29 19:49:52 +0000 |
commit | 60439948f2a3b50b527a9457a6e05eb0d94cf56a (patch) | |
tree | cb7fd022f6d42255e5c55bb27c75b8c88a3ae814 | |
parent | 82b942b71bb22e60c5c8463cb4cfee7f7d4e358f (diff) | |
download | emacs-60439948f2a3b50b527a9457a6e05eb0d94cf56a.tar.gz emacs-60439948f2a3b50b527a9457a6e05eb0d94cf56a.tar.bz2 emacs-60439948f2a3b50b527a9457a6e05eb0d94cf56a.zip |
(x_term_init): Block input during this function.
-rw-r--r-- | src/xterm.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 14d77c1adc2..793d24c2199 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -5601,6 +5601,8 @@ x_term_init (display_name, xrm_option, resource_name) struct x_display_info *dpyinfo; XrmDatabase xrdb; + BLOCK_INPUT; + if (!x_initialized) { x_initialize (); @@ -5643,7 +5645,10 @@ x_term_init (display_name, xrm_option, resource_name) /* Detect failure. */ if (dpy == 0) - return 0; + { + UNBLOCK_INPUT; + return 0; + } /* We have definitely succeeded. Record the new connection. */ @@ -5817,6 +5822,8 @@ x_term_init (display_name, xrm_option, resource_name) init_sigio (connection); #endif /* ! defined (SIGIO) */ + UNBLOCK_INPUT; + return dpyinfo; } |