摘要: 原文连接:http://edu.codepub.com/2010/1017/26463.php相关函数 fork,execve,waitpid,popen 表头文件 #include<stdlib.h> 定义函数 int system(const char * string); 函数说明 system()会调用fork()产生子进程,由子进程来调用/bin/sh-c string来执行参数string字符串所代表的命令,此命>令执行完后随即返回原调用的进程。在调用system()期间SIGCHLD 信号会被暂时搁置,SIGINT和SIGQUIT 信号则会被忽略。 返回值 =- 阅读全文
posted @ 2013-04-24 13:03 西芒xiaoP 阅读(228) 评论(0) 推荐(0)