2006-01-04 Michael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / multi-forks.c
CommitLineData
099ac3dd
MS
1#include <stdio.h>
2#include <sys/types.h>
3#include <unistd.h>
4
5pid_t pids[4];
6
7main()
8{
9 int i;
10
11 for (i = 0; i < 4; i++)
12 pids [i] = fork ();
13
14 printf ("%d ready\n", getpid ());
15 sleep (2);
16 printf ("%d done\n", getpid ());
17 exit (0); /* Set exit breakpoint here. */
18}
This page took 0.022924 seconds and 4 git commands to generate.