aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2025-03-12 10:02:33 +0900
committerTakashi Yano <takashi.yano@nifty.ne.jp>2025-03-15 00:53:33 +0900
commit0f02ac19102dd8e5c5722cac2f6069e646f0f42c (patch)
treedfd853c63bfbc580edf8c089e6177f718da3d47e
parent0210c77311ae59a7959f413c8ca9d1fc624ef373 (diff)
downloadnewlib-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.cc3
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;