我的问题是执行时父堆栈会发生什么?
main()
{
f();
g();
}
f()
{
vfork();
}
g()
{
int blast[100],i;
for(i=0;i<100;i++)
blast[i]=i;
}
最佳答案
根据 http://pubs.opengroup.org/onlinepubs/009695399/functions/vfork.html 未定义该行为
the behavior is undefined if the process created by vfork() [...] returns from the function in which vfork() was called [...]
关于c - Vfork() 和更多腐败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8201243/