summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 72af24170..476d86957 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1557,7 +1557,7 @@ getout_preserve_modified(int exitval)
// Ignore SIGHUP, because a dropped connection causes a read error, which
// makes Vim exit and then handling SIGHUP causes various reentrance
// problems.
- signal(SIGHUP, SIG_IGN);
+ mch_signal(SIGHUP, SIG_IGN);
# endif
ml_close_notmod(); // close all not-modified buffers