- 在父进程中调用fork系统调用并ext
- 在子进程中调用
setsid
函数创建新的会话 - 在子进程中调用
chdir
函数,让根目录"/""
成为子进程的工作目录 - 在子进程中调用
umask
函数,设置子进程umask为0. - 在子进程中关闭任何不需要的文件描述符
-
Notifications
You must be signed in to change notification settings - Fork 0
License
ltoddy/daemonize
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published