]> granicus.if.org Git - strace/blob - test/sig.c
Add argument to tprint_iov() specifying whether to decode each iovec
[strace] / test / sig.c
1 #include <stdlib.h>
2 #include <signal.h>
3
4 void interrupt()
5 {
6         write(2, "xyzzy\n", 6);
7 }
8
9 int main(int argc, char *argv[])
10 {
11         char buf[1024];
12
13         signal(SIGINT, interrupt);
14         read(0, buf, 1024);
15         write(2, "qwerty\n", 7);
16
17         return 0;
18 }