[uClibc]Problem with vfork() followed by exec() on ARM7
Tonny Tzeng
tzengym at ms8.hinet.net
Fri Sep 21 01:26:40 UTC 2001
Does anyone use vfork() followed by exec() on ARM platforms?
The uClibc.old on cvs.uclinux.org has no such problem, but when
I compile my simple program below with the newest uClibc (0.9.5),
the parent will not get called after exec(), please help.
PS: My platform: uClinux 2.0.38 + uClibc 0.9.5 on ARM7
Best regards,
Tonny
int main(int argc, char** argv)
{ int pid, status;
if ((pid = vfork()) == 0) {
printf("Child\n");
execvp("/bin/ls",NULL);
exit(0);
}
wait4(pid,&status,0,0);
printf("Parent\n");
}
More information about the uClibc
mailing list