1
0
forked from aniani/vim

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)
This commit is contained in:
ichizok
2023-05-11 22:25:42 +01:00
committed by Bram Moolenaar
parent 5d01f86d99
commit 378447fc18
12 changed files with 137 additions and 75 deletions

View File

@@ -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