摘要:
守护进程 通常,执行命令都要在终端执行。产生的进程也于终端相联系,当shell退出时,和这和终端相关联的进程会收到SIGHUP信号,默认动作是终止进程。守护进程就是一个不依赖终端的进程 进程组 shell启动一个进程,会给该进程创建一个进程组,进程组id就是进程的pid,也可以用setpgrp函 阅读全文
posted @ 2022-01-20 14:26
hellozhangjz
阅读(62)
评论(0)
推荐(0)
摘要:
#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <time.h> #define S 阅读全文
posted @ 2022-01-20 13:11
hellozhangjz
阅读(57)
评论(0)
推荐(0)