导航

2012年5月29日

摘要: 原文链接http://yecheng110.blog.hexun.com/13521254_d.html先来看以下一段代码(test.c): 1 #include<stdio.h> 2 #include<sys/types.h> 3 4 int main() 5 { 6 pid_t pid; 7 fprintf(stdout,"%s","Start fork..."); 8 pid = fork(); 9 switch(pid)10 {11 case -1:12 break;13 case 0:1... 阅读全文

posted @ 2012-05-29 10:17 jackycai 阅读(158) 评论(0) 推荐(0)