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

« back to all changes in this revision

Viewing changes to test/vfork.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
 
main()
2
 
{
3
 
        if (vfork() == 0)
4
 
                write(1, "child\n", 6);
5
 
        else {
6
 
                wait(0);
7
 
                write(1, "parent\n", 7);
8
 
        }
9
 
        exit(0);
10
 
}