摘要: 进程控制,处理僵尸进程(父进程如何等待子进程的退出) exit 进程退出 #include<stdlib.h> void exit(int status);//是标准c库函数 //内部调用系统调用 #include<unistd.h> void _exit(int status); #include 阅读全文
posted @ 2021-12-25 22:10 ziggystardust 阅读(124) 评论(0) 推荐(0)
摘要: 如何在一个程序中运行另外一个程序:exec系列调用 #include <unistd.h> extern char **environ; int execl(const char *path, const char *arg, ... /* (char *) NULL */); int execlp 阅读全文
posted @ 2021-12-25 21:59 ziggystardust 阅读(123) 评论(0) 推荐(0)