Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
bbe29b36aa1b3d50ea60ca58d3a6a959ac6237dd
/
.
/
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
);
}