diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-03-12 10:02:33 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-03-15 00:53:33 +0900 |
commit | 0f02ac19102dd8e5c5722cac2f6069e646f0f42c (patch) | |
tree | dfd853c63bfbc580edf8c089e6177f718da3d47e | |
parent | 0210c77311ae59a7959f413c8ca9d1fc624ef373 (diff) | |
download | newlib-0f02ac19102dd8e5c5722cac2f6069e646f0f42c.zip newlib-0f02ac19102dd8e5c5722cac2f6069e646f0f42c.tar.gz newlib-0f02ac19102dd8e5c5722cac2f6069e646f0f42c.tar.bz2 |
Cygwin: signal: Remove context_copy in call_signal_handler()
After the commit 1d97f8aa4385, context_copy in call_signal_handle()
is not used anymore. This patch removes it.
Fixes: 1d97f8aa4385 ("Cygwin: signals: don't evaluate SA_SIGINFO context after handler returns")
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
-rw-r--r-- | winsup/cygwin/exceptions.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 86523af..2e25aa2 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1694,7 +1694,7 @@ _cygtls::call_signal_handler () siginfo_t thissi = infodata; void (*thisfunc) (int, siginfo_t *, void *) = func; - ucontext_t *thiscontext = NULL, context_copy; + ucontext_t *thiscontext = NULL; /* Only make a context for SA_SIGINFO handlers */ if (this_sa_flags & SA_SIGINFO) @@ -1752,7 +1752,6 @@ _cygtls::call_signal_handler () ? (uintptr_t) thissi.si_addr : 0; thiscontext = &context1; - context_copy = context1; } int this_errno = saved_errno; |