当前位置: 技术问答>linux和unix
gcc编译时产生总线错误
来源: 互联网 发布时间:2016-09-28
本文导语: #include #include #include int main(void) { pid_t pid; int count = 0; printf("the father's ID is %dn",getpid()); pid = vfork(); count++; printf("the %d,count is %dn",getpid(),count); if(pid
#include
#include
#include
int main(void)
{
pid_t pid;
int count = 0;
printf("the father's ID is %dn",getpid());
pid = vfork();
count++;
printf("the %d,count is %dn",getpid(),count);
if(pid
#include
#include
int main(void)
{
pid_t pid;
int count = 0;
printf("the father's ID is %dn",getpid());
pid = vfork();
count++;
printf("the %d,count is %dn",getpid(),count);
if(pid