摘要: 通过进程的名称监控某个进程,如果该进程退出了,就马上启动该进程。通过system启动,如果该进程不退出或崩溃,将阻塞等待,将不会通过命令检查该进程是否存活。 源代码:deamon.c #include <stdio.h> #include <time.h> #include <stdlib.h> # 阅读全文
posted @ 2020-09-27 23:44 jest549 阅读(791) 评论(0) 推荐(0) 编辑