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