gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
* tests/test-raise.c: Include unistd.h.
(handler): Use _exit, not exit.
+2020-11-25 Jim Meyering <meyering@fb.com>
+
+ raise-tests: avoid GCC 11's new exit-from-signal-handler warning
+ gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
+ * tests/test-raise.c: Include unistd.h.
+ (handler): Use _exit, not exit.
+
2020-11-23 Bruno Haible <bruno@clisp.org>
Use the correct printf format attribute for mingw.
#include <config.h>
#include <signal.h>
+#include <unistd.h>
#include "signature.h"
SIGNATURE_CHECK (raise, int, (int));
static _Noreturn void
handler (int sig)
{
- exit (0);
+ _exit (0);
}
int