diff options
author | Aleksandrs Saveljevs <git-no-reply@zabbix.com> | 2010-06-21 10:04:44 +0400 |
---|---|---|
committer | Aleksandrs Saveljevs <git-no-reply@zabbix.com> | 2010-06-21 10:04:44 +0400 |
commit | 57a00d82bff00746a3784c6d498bf3282b070400 (patch) | |
tree | abf60861c4da089867f6bf1dd14a9cd35b985d22 /include/daemon.h | |
parent | ead515e6dec7e842859668e4fd6856ae26c6f5d7 (diff) |
- [ZBX-2575] removed outdated and undocumented environment variables from alert scripts (asaveljevs)
[svn merge svn://svn.zabbix.com/branches/1.8 -c 12964]
Diffstat (limited to 'include/daemon.h')
-rw-r--r-- | include/daemon.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/daemon.h b/include/daemon.h index c6df7c40d06..65dc8a27985 100644 --- a/include/daemon.h +++ b/include/daemon.h @@ -17,7 +17,6 @@ ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. **/ - #ifndef ZABBIX_DAEMON_H #define ZABBIX_DAEMON_H @@ -25,25 +24,20 @@ # error "This module allowed only for Linux OS" #endif /* _WINDOWS */ -#define USE_PID_FILE (1) +#define USE_PID_FILE 1 extern char *APP_PID_FILE; #include "threads.h" -#define MAXFD 64 - -void child_signal_handler(int sig, siginfo_t *siginfo, void *context); +void child_signal_handler(int sig, siginfo_t *siginfo, void *context); int daemon_start(int allow_root); void daemon_stop(void); void init_main_process(void); -/* ask for application closing status - NOT needed for linux forks */ -#define ZBX_IS_RUNNING (1) - -/* tall all threads what application must be closed - NOT needed for linux forks */ +#define ZBX_IS_RUNNING() 1 #define ZBX_DO_EXIT() #define START_MAIN_ZABBIX_ENTRY(a) daemon_start(a) |