summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-12 11:37:09 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-12 11:37:09 +0000
commit46c9c73de8def79baf8f0a34a12549f6c14944f3 (patch)
tree8a88c07c5a43bea782eb1afa74b73d3e9feb6e76 /src/ui.c
parentd8b0cf1cc5231e19116cc3208b680a07f842bfe9 (diff)
downloadvim-git-46c9c73de8def79baf8f0a34a12549f6c14944f3.tar.gz
updated for version 7.0022v7.0022
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui.c b/src/ui.c
index 3963bd545..ac88dc6ab 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -177,11 +177,11 @@ ui_inchar(buf, maxlen, wtime, tb_change_cnt)
else
# endif
{
- if (wtime == -1)
- handle_sighup(SIGHUP_UNBLOCK); /* allow SIGHUP to kill us */
+ if (wtime == -1 || wtime > 100L)
+ (void)handle_signal(SIGNAL_UNBLOCK); /* allow signals to kill us */
retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
- if (wtime == -1)
- handle_sighup(SIGHUP_BLOCK); /* block SIGHUP */
+ if (wtime == -1 || wtime > 100L)
+ (void)handle_signal(SIGNAL_BLOCK); /* block SIGHUP et al. */
}
#endif