linux系统下的system函数
摘要:system函数的头文件是stdlib.h system函数执行了三步操作: 3.在父进程中调用wait去等待子进程结束 对于fork失败,system()函数返回-1。 如果exec执行成功,也即command顺利执行完毕,则返回command通过exit或return返回的值。 (注意,comm
阅读全文
posted @ 2019-09-10 15:09
posted @ 2019-09-10 15:09