hi all,
my uclinux kernel version is 2.4.22, and uclibc version is 0.9.26. Now I have cross compiled konq/e and qte. but i have found fork() does not work well on my system.
when it calls fork(), the child process halted. I changed it to vfork(), then parent process halted. here is the test program.
Code:
#include <stdio.h>
#include <unistd.h>
int main()
{
if(vfork() == 0){
printf("Child process\n");
sleep(5);
}
else{
printf("Parent process\n");
}
return 0;
}
result is:
Child process
(after 5s)
Parent process
then I change to fork():
Code:
#include <stdio.h>
#include <unistd.h>
int main()
{
if(fork() == 0){
printf("Child process\n");
sleep(5);
}
else{
printf("Parent process\n");
}
return 0;
}
the result is:
Parent process
It seems the child process never run. Why does this happen. The konq/e crashs here.
By the way, my arm toolchain is 2.95.3.