Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
a0a4909988f9a5db1427dbf7a5ef4efbfb3e8125
/
.
/
test
/
sig.c
blob: 1678b0227aff78499f1f43e558b21504f06b3ba3 [
file
] [
log
] [
blame
]
#include
<stdlib.h>
#include
<signal.h>
#include
<unistd.h>
void
interrupt
()
{
write
(
2
,
"xyzzy\n"
,
6
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
char
buf
[
1024
];
signal
(
SIGINT
,
interrupt
);
read
(
0
,
buf
,
1024
);
write
(
2
,
"qwerty\n"
,
7
);
return
0
;
}