标签: c process fork pid
if (fork()==0) { printf("sup my name is %d" \ " and my parent is %d",getpid(),getppid());} printf("\n"); printf("pid %d-\n",getpid()); }
为什么我跑这个时候要有两个不同的父母?
pid() and getppid()