repo.or.cz
/
libc-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
inet_pton tests, fix regression test case
[libc-test.git]
/
src
/
regression
/
sigreturn.c
blob
86a0fcbefa9e5eba7953df412cef0e1104317d55
1
// commit: dc3776d445957cd3ea4a682db518701b93d34292 2011-02-13
2
// sigreturn crash
3
#include <signal.h>
4
5
static
volatile
sig_atomic_t
x
;
6
7
void
handler
(
int
s
)
8
{
9
x
=
1
;
10
}
11
12
int
main
(
void
)
13
{
14
signal
(
SIGINT
,
handler
);
15
if
(
raise
(
SIGINT
))
16
return
2
;
17
if
(
x
!=
1
)
18
return
1
;
19
return
0
;
20
}