diff src/main.c @ 32425:c0b3e3c7786c v9.0.1544

patch 9.0.1544: recent glibc marks sigset() as a deprecated Commit: https://github.com/vim/vim/commit/378447fc183b589039a5bf257923a86d439b0a91 Author: ichizok <gclient.gaap@gmail.com> Date: Thu May 11 22:25:42 2023 +0100 patch 9.0.1544: recent glibc marks sigset() as a deprecated Problem: Recent glibc marks sigset() as a deprecated. Solution: Use sigaction() in mch_signal() if possible. (Ozaki Kiichi, closes #12373)
author Bram Moolenaar <Bram@vim.org>
date Thu, 11 May 2023 23:30:04 +0200
parents 6e96bd314ffe
children a1e1527d1cb8
line wrap: on
line diff
--- 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