]> granicus.if.org Git - strace/blob - test/fork.c
9bed1fe48668426d50e00f6d2b32b4be1e7e6f8f
[strace] / test / fork.c
1 #include <stdlib.h>
2 #include <unistd.h>
3
4 int main(int argc, char *argv[])
5 {
6         if (fork() == 0) {
7                 write(1, "child\n", 6);
8         } else {
9                 wait(0);
10                 write(1, "parent\n", 7);
11         }
12
13         exit(0);
14 }