Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
ae259337730f2d7a2b47bfbfb33aad1db0b65fba
/
.
/
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
);
}