diff options
author | ichizok <gclient.gaap@gmail.com> | 2023-05-11 22:25:42 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-11 22:25:42 +0100 |
commit | 378447fc183b589039a5bf257923a86d439b0a91 (patch) | |
tree | b1e666683049b74577fec1bf647a3059dcfb80b9 /src/misc1.c | |
parent | 5d01f86d99bc3a3fd92d4f4e9338a9e78e9ebe16 (diff) |
patch 9.0.1544: recent glibc marks sigset() as a deprecatedv9.0.1544
Problem: Recent glibc marks sigset() as a deprecated.
Solution: Use sigaction() in mch_signal() if possible. (Ozaki Kiichi,
closes #12373)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c index a03c405e5b..4ef5e14e2b 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -2208,7 +2208,7 @@ prepare_to_exit(void) // 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 #ifdef FEAT_GUI |