阅读背景:

具体来说,fork()如何处理Linux中malloc()动态分配的内存?

来源:互联网 

I have a program with a parent and a child process. Before the fork(), the parent process called malloc() and filled in an array with some data. After the fork(), the child needs that data. I know that I could use a pipe, but the following code appears to work:I have a program with a parent and a child proc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: