blob: 930a177f5d46b06712d43f270dbe908a31a35edb [file] [log] [blame]
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001#include <signal.h>
2main()
3{
4 char buf[1024];
5 void interrupt();
6
7 signal(SIGINT, interrupt);
8 read(0, buf, 1024);
9 write(2, "qwerty\n", 7);
10 exit(0);
11}
12
13interrupt()
14{
15 write(2, "xyzzy\n", 6);
16}