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/main.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/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 72af24170b..476d869578 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 |