~ubuntu-branches/ubuntu/saucy/strace/saucy-proposed

« back to all changes in this revision

Viewing changes to test/sig.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-05-05 10:21:37 UTC
  • mfrom: (0.1.6 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090505102137-ransgzeynrwa2yww
Tags: 4.5.18-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Add lpia as supported architecture

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <signal.h>
2
 
main()
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
 
 
13
 
interrupt()
14
 
{
15
 
        write(2, "xyzzy\n", 6);
16
 
}