blob: 5f7bb7d40cc25845ca2570a44e8e0dcec89480ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <signal.h>
#include <assert.h>
#include <stdlib.h>
void handler(int sig, siginfo_t *info, void *ctx) {
(void)sig;
(void)info;
(void)ctx;
}
int main() {
struct sigaction sa;
sa.sa_sigaction = handler;
sa.sa_flags = SA_SIGINFO;
sigemptyset(&sa.sa_mask);
int ret = sigaction(SIGABRT, &sa, NULL);
assert(!ret);
abort();
}
|