summaryrefslogtreecommitdiffstats
path: root/src/gui_haiku.cc
diff options
context:
space:
mode:
authorichizok <gclient.gaap@gmail.com>2023-05-11 22:25:42 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-11 22:25:42 +0100
commit378447fc183b589039a5bf257923a86d439b0a91 (patch)
treeb1e666683049b74577fec1bf647a3059dcfb80b9 /src/gui_haiku.cc
parent5d01f86d99bc3a3fd92d4f4e9338a9e78e9ebe16 (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/gui_haiku.cc')
-rw-r--r--src/gui_haiku.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui_haiku.cc b/src/gui_haiku.cc
index 15c4389f86..c8b05e1be2 100644
--- a/src/gui_haiku.cc
+++ b/src/gui_haiku.cc
@@ -785,8 +785,8 @@ VimApp::ReadyToRun()
* Apparently signals are inherited by the created thread -
* disable the most annoying ones.
*/
- signal(SIGINT, SIG_IGN);
- signal(SIGQUIT, SIG_IGN);
+ mch_signal(SIGINT, SIG_IGN);
+ mch_signal(SIGQUIT, SIG_IGN);
}
void
@@ -1067,8 +1067,8 @@ VimFormView::AllAttached()
* Apparently signals are inherited by the created thread -
* disable the most annoying ones.
*/
- signal(SIGINT, SIG_IGN);
- signal(SIGQUIT, SIG_IGN);
+ mch_signal(SIGINT, SIG_IGN);
+ mch_signal(SIGQUIT, SIG_IGN);
if (menuBar && textArea) {
/*