aboutsummaryrefslogblamecommitdiff
path: root/example/raise1.c
blob: a0be4f5175b1fde7615c6e2a6aa3d964e5f7b1be (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                          
#include <signal.h>

// Raise from main thread.

void foo() {
  raise(SIGSEGV);
}
void bar() {
  foo();
}
void qux() {
  bar();
}

int main() {
  qux();
}