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

« back to all changes in this revision

Viewing changes to test/fork.c

  • Committer: Bazaar Package Importer
  • Author(s): Anand Kumria
  • Date: 2001-10-01 14:22:25 UTC
  • Revision ID: james.westby@ubuntu.com-20011001142225-h6l10cregbilmpw5
Tags: 4.4-1.2
* NMU
* Quick one-liner to allow building on the ARM. Closes: #109993.
* Re-ran autoconf, hopefully I didn't break other arches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
main()
 
2
{
 
3
        if (fork() == 0)
 
4
                write(1, "child\n", 6);
 
5
        else {
 
6
                wait(0);
 
7
                write(1, "parent\n", 7);
 
8
        }
 
9
        exit(0);
 
10
}