mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 06:33:36 +00:00
sigaction: Fix test failure on native Windows.
* lib/sigaction.c (sigaction): Hide the sigaction_handler from the caller.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2026-04-14 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
sigaction: Fix test failure on native Windows.
|
||||
* lib/sigaction.c (sigaction): Hide the sigaction_handler from the
|
||||
caller.
|
||||
|
||||
2026-04-13 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
stdbit-h: Port to Intel icpx C++ compiler.
|
||||
|
||||
@@ -171,6 +171,10 @@ sigaction (int sig, const struct sigaction *restrict act,
|
||||
signal (sig, oact->sa_handler);
|
||||
oact->sa_flags = SA_RESETHAND | SA_NODEFER;
|
||||
sigemptyset (&oact->sa_mask);
|
||||
/* The sigaction_handler is an internal detail. It must not be
|
||||
visible to the caller. */
|
||||
if (oact->sa_handler == sigaction_handler)
|
||||
*oact = action_array[sig];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user