Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Grigorjev <git-no-reply@zabbix.com>2007-06-28 18:35:44 +0400
committerEugene Grigorjev <git-no-reply@zabbix.com>2007-06-28 18:35:44 +0400
commit5f32658e8edda9b7e394001590478ee7f8d1ffcc (patch)
tree9b01e2aaf88d9d7b6db6384888c6f5ad1c38b04e /include/service.h
parent1a42b2b50626a719a70183fca039d8b47a314ed4 (diff)
- improoved UserParameters for Win32 (Eugene)
Diffstat (limited to 'include/service.h')
-rw-r--r--include/service.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/service.h b/include/service.h
index e6fae036f3d..2d9e1cbdeb0 100644
--- a/include/service.h
+++ b/include/service.h
@@ -38,20 +38,20 @@ int ZabbixRemoveService(void);
int ZabbixStartService(void);
int ZabbixStopService(void);
-#define init_main_process()
+void init_main_process(void);
/* APPLICATION running status */
/* requred for closing application from service */
-extern int application_is_runned;
+int application_status;
-#define ZBX_APP_STOPPED 1
+#define ZBX_APP_STOPPED 0
#define ZBX_APP_RUNNED 1
/* ask for running application of closing status */
-#define ZBX_IS_RUNNING (ZBX_APP_RUNNED == application_is_runned)
+#define ZBX_IS_RUNNING (ZBX_APP_RUNNED == application_status)
/* ask for application closing status */
-#define ZBX_DO_EXIT() (application_is_runned = ZBX_APP_STOPPED)
+#define ZBX_DO_EXIT() zbx_error("[%s] [%li]", __FILE__, __LINE__); application_status = ZBX_APP_STOPPED
#define START_MAIN_ZABBIX_ENTRY(a) service_start()