diff options
author | Juris Miščenko <git-no-reply@zabbix.com> | 2014-01-07 18:33:10 +0400 |
---|---|---|
committer | Juris Miščenko <git-no-reply@zabbix.com> | 2014-01-07 18:33:10 +0400 |
commit | 0d97ab582c880afe186aec7ea0d78deae98a79c3 (patch) | |
tree | 957ab8133ebb22d42f0e572669dac4805537d58f /include/daemon.h | |
parent | 649fa51eb01234d6043eba1903886a1e01f77b42 (diff) |
...G...PS. [ZBXNEXT-453] Implemented ability to drop privileges to any existing system user. daemon_start() has a new parameter.
Diffstat (limited to 'include/daemon.h')
-rw-r--r-- | include/daemon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/daemon.h b/include/daemon.h index f406fb9a8c0..add5fd3f24f 100644 --- a/include/daemon.h +++ b/include/daemon.h @@ -30,7 +30,7 @@ extern char *CONFIG_PID_FILE; #include "threads.h" -int daemon_start(int allow_root); +int daemon_start(int allow_root, char *user); void daemon_stop(); int zbx_sigusr_send(zbx_task_t task); @@ -38,6 +38,6 @@ int zbx_sigusr_send(zbx_task_t task); #define ZBX_IS_RUNNING() 1 #define ZBX_DO_EXIT() -#define START_MAIN_ZABBIX_ENTRY(a) daemon_start(a) +#define START_MAIN_ZABBIX_ENTRY(a, u) daemon_start(a, u) #endif /* ZABBIX_DAEMON_H */ |