]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.hp/foll-vfork.c
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.hp / foll-vfork.c
1 #include <stdio.h>
2
3 main ()
4 {
5 int pid;
6
7 pid = vfork ();
8 if (pid == 0) {
9 printf ("I'm the child!\n");
10 execlp ("gdb.hp/vforked-program", "gdb.hp/vforked-program", (char *)0);
11 }
12 else {
13 printf ("I'm the proud parent of child #%d!\n", pid);
14 }
15 }