摘要: 一、标准步骤 创建守护进程大概分以下几步,但是还要关闭一些文件描述符才行: #include <unistd.h> #include <stdio.h> #define RUNNING_DIR /tmp int main(){ pid_t pid; pid=fork(); if(pid!=0)exi 阅读全文
posted @ 2019-08-23 11:41 AlexOne 阅读(265) 评论(0) 推荐(0)