摘要:
参考APUE中第1章1.6小节主要涉及到2个函数: fork、exec[cpp]view plaincopy//filename:process_ctrl.c//childprocess--fork,exec,waitpid#include#include#defineMAXLINE32intmain(intargc,char*argv[]){charbuf[MAXLINE];pid_tpid;intstatus;printf("parent:pid=%d\n",getpid());printf("%%");while(fgets(buf,MAXLINE 阅读全文
posted @ 2014-01-16 16:54
haichun
阅读(354)
评论(0)
推荐(0)
浙公网安备 33010602011771号