flockfile list corruption test
[libc-test.git] / src / regression / sigreturn.c
blob86a0fcbefa9e5eba7953df412cef0e1104317d55
1 // commit: dc3776d445957cd3ea4a682db518701b93d34292 2011-02-13
2 // sigreturn crash
3 #include <signal.h>
5 static volatile sig_atomic_t x;
7 void handler(int s)
9 x = 1;
12 int main(void)
14 signal(SIGINT, handler);
15 if (raise(SIGINT))
16 return 2;
17 if (x != 1)
18 return 1;
19 return 0;