进程控制实验
进程控制:#include"pctl.h"intmain(intargc,char*argv[]){inti;intpid1,pid2;intstatus1,status2;char*args1[]={"/bin/ls","-a",NULL};char*args2[]={"/bin/ps","-a",NULL};signal(SIGINT,(sighandler_t)sigcat);pid1=fork();//printf("IamthefirstChildprocess%d\n",getpi
用户评论