11 lines
114 B
C
11 lines
114 B
C
main()
|
|
{
|
|
if (fork() == 0)
|
|
write(1, "child\n", 6);
|
|
else {
|
|
wait(0);
|
|
write(1, "parent\n", 7);
|
|
}
|
|
exit(0);
|
|
}
|