2018年4月2日

Linux API fork 子进程 创建 & 无名管道通信

摘要: #include #include int main() { int filedes[2]; char buffer[80]; pipe(filedes); printf("my pid is %u.\r\n",getpid()); /* 实测发现,子进程不会输出上面这句话,表示子进程从这开始的 */ ... 阅读全文

posted @ 2018-04-02 16:24 所长 阅读(199) 评论(0) 推荐(0) 编辑

导航