2013年1月16日
摘要: #include <unistd.h> #include <stdlib.h>#include <stdio.h>#include <string.h>#define INPUT 0 #define OUTPUT 1 int main() { int file_descriptors[2]; /*定义子进程号 */ pid_t pid; char buf[256]; int returned_count; /*创建无名管道*/ pipe(file_descriptors); /*创建子进程*/ if((pid = fork()) == -1) { 阅读全文
posted @ 2013-01-16 20:21 BLoodMaster 阅读(212) 评论(0) 推荐(0) 编辑