当前位置: 技术问答>linux和unix
请问一个小程序(守护进程)
来源: 互联网 发布时间:2016-07-12
本文导语: int main() { int i; pid_t pid; /*int daemonfd = -1; daemonfd = open("/dev/null",0); if(daemonfd
int main()
{
int i;
pid_t pid;
/*int daemonfd = -1;
daemonfd = open("/dev/null",0);
if(daemonfd
{
int i;
pid_t pid;
/*int daemonfd = -1;
daemonfd = open("/dev/null",0);
if(daemonfd