Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
3e90b2992913db31bcc5b1b6f1b3fa8c28c5dc0c
/
.
/
test
/
fork.c
blob: 9bed1fe48668426d50e00f6d2b32b4be1e7e6f8f [
file
] [
log
] [
blame
]
#include
<stdlib.h>
#include
<unistd.h>
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
fork
()
==
0
)
{
write
(
1
,
"child\n"
,
6
);
}
else
{
wait
(
0
);
write
(
1
,
"parent\n"
,
7
);
}
exit
(
0
);
}