#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>
main()
{
pid_t pid;
int count=0;
pid=vfork();
count++;
printf("count=%d, pid=%d\n",count,getpid());
return(0);
}
运行出现count=1,pid=25127
count=1, pid=25126 后又显示“段错误”
尝试把retrurn(0); 改为 exit(0);之后运行结果 count=1;pid=25145
count=2;pid=25144
查看了有关return() 和 exit()还是不理解,求解释!!!!!!