1
0
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:
Bruno Haible
2026-04-14 20:38:39 +02:00
parent acbecf6ea2
commit e304c84784
2 changed files with 10 additions and 0 deletions

View File

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

View File

@@ -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];
}
}