Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
strace
/
f8bc0655a0db6fd3031384a88cdc707285029ca5
/
.
/
test
/
sig.c
blob: 60a9dc9e3dc097cab9127ee533029be0b2212004 [
file
] [
log
] [
blame
]
#include
<stdlib.h>
#include
<signal.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
;
}