]> granicus.if.org Git - strace/blob - test/sig.c
mmap_cache: add function to enable mmap_cache
[strace] / test / sig.c
1 #include <stdlib.h>
2 #include <signal.h>
3 #include <unistd.h>
4
5 static void
6 interrupt(void)
7 {
8         write(2, "xyzzy\n", 6);
9 }
10
11 int
12 main(int argc, char *argv[])
13 {
14         char buf[1024];
15
16         signal(SIGINT, interrupt);
17         read(0, buf, 1024);
18         write(2, "qwerty\n", 7);
19
20         return 0;
21 }