Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
3cad4a6f398cc75a69add363e9b1db6b3b2ae4b7
/
.
/
test
/
sig.c
blob: 930a177f5d46b06712d43f270dbe908a31a35edb [
file
] [
log
] [
blame
]
#include
<signal.h>
main
()
{
char
buf
[
1024
];
void
interrupt
();
signal
(
SIGINT
,
interrupt
);
read
(
0
,
buf
,
1024
);
write
(
2
,
"qwerty\n"
,
7
);
exit
(
0
);
}
interrupt
()
{
write
(
2
,
"xyzzy\n"
,
6
);
}