文件名称:guard-2
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 6kb
- 下载次数:
- 0次
- 提 供 者:
- quie*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
个人编写的一个十分好用的函数,可以设置程序成为后台守护进程,
调用十分简单,在程序中调用函数deamon即可,以下是函数原型
int daemon(int nochdir, int noclose)
其中 nochdir 为是否修改当前目录-Individual written a very useful function, you can set the program to become a background daemon, called very simple, the program can call the function deamon, the following is the function prototype int daemon (int nochdir, int noclose) which nochdir as to whether changes current directory
调用十分简单,在程序中调用函数deamon即可,以下是函数原型
int daemon(int nochdir, int noclose)
其中 nochdir 为是否修改当前目录-Individual written a very useful function, you can set the program to become a background daemon, called very simple, the program can call the function deamon, the following is the function prototype int daemon (int nochdir, int noclose) which nochdir as to whether changes current directory
(系统自动生成,下载前可以参看下载内容)
下载文件列表
guard-2\guard
.......\guard.c
.......\guard.h
.......\guard.o
.......\main.c
.......\main.o
.......\说明.txt
guard-2
.......\guard.c
.......\guard.h
.......\guard.o
.......\main.c
.......\main.o
.......\说明.txt
guard-2