
Go to the source code of this file.
Functions | |
| int | daemonize (int *own_pgid) |
| daemon init | |
| int | do_suid (const int uid, const int gid) |
| set daemon user and group id | |
| int | increase_open_fds (unsigned int target) |
| try to increase the open file limit | |
| int | set_core_dump (int enable, unsigned int size) |
| enable or disable core dumps | |
Definition in file daemonize.h.
| int daemonize | ( | int * | own_pgid | ) |
daemon init
| own_pgid | daemon process group |
Definition at line 63 of file daemonize.c.
References chroot_dir, disable_core_dump, LM_CRIT, LM_ERR, LM_WARN, log_stderr, NULL, pgid_file, pid, pid_file, and working_dir.
Referenced by main().
| int do_suid | ( | const int | uid, | |
| const int | gid | |||
| ) |
set daemon user and group id
| uid | user id | |
| gid | group id |
Definition at line 223 of file daemonize.c.
References disable_core_dump, LM_CRIT, and LM_ERR.
Referenced by main_loop().
| int increase_open_fds | ( | unsigned int | target | ) |
| int set_core_dump | ( | int | enable, | |
| unsigned int | size | |||
| ) |
enable or disable core dumps
| enable | set to 1 to enable, to 0 to disable | |
| size | core dump size |
Definition at line 316 of file daemonize.c.
References LM_CRIT, and LM_DBG.
Referenced by main().
1.5.6