摘要: exit和_exit函数 作用 :用来终止一个进程 函数原型: exit函数原型: include <stdlib.h void exit(int status); _exit函数原型: include <unistd.h void _exit(int status); 参数status:... 阅读全文
posted @ 2015-11-24 21:56 adacn 阅读(260) 评论(0) 推荐(0) 编辑
摘要: exec函数 一、简介Linux使用exec函数来执行新的程序,以新的子进程来完全代替原有的进程 1)函数原型在linux中,并不存在exec()函数,exec指的是一组函数,一共有6个,分别是: include <unistd.h int execl(const char pathname,... 阅读全文
posted @ 2015-11-24 10:09 adacn 阅读(308) 评论(1) 推荐(0) 编辑