summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-09 21:34:53 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-09 21:34:53 +0000
commit293ee4d421cd55f4a3c014c1c26edf02f718cc83 (patch)
treeae4856e718b752ea0c6c807912bfbb51967fae80 /src/misc1.c
parent741b07e0092eb6d7b81c9cbe149196c6cf9d5bbe (diff)
downloadvim-git-293ee4d421cd55f4a3c014c1c26edf02f718cc83.tar.gz
updated for version 7.0021v7.0021
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index ec744861e..4dc5a4179 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -7653,6 +7653,12 @@ get_lisp_indent()
void
prepare_to_exit()
{
+#if defined(UNIX)
+ /* Ignore SIGHUP, because a dropped connection may make Vim exit and then
+ * get a SIGHUP while exiting, which causes various reentrent problems. */
+ signal(SIGHUP, SIG_IGN);
+#endif
+
#ifdef FEAT_GUI
if (gui.in_use)
{