diff options
Diffstat (limited to 'src/libs/zbxself/selfmon.c')
-rw-r--r-- | src/libs/zbxself/selfmon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/zbxself/selfmon.c b/src/libs/zbxself/selfmon.c index d0d85c26eaa..ae396a6e601 100644 --- a/src/libs/zbxself/selfmon.c +++ b/src/libs/zbxself/selfmon.c @@ -273,26 +273,26 @@ void init_selfmon_collector(void) if (-1 == (shm_key = zbx_ftok(CONFIG_FILE, ZBX_IPC_SELFMON_ID))) { zabbix_log(LOG_LEVEL_CRIT, "cannot create IPC key for a self-monitoring collector"); - exit(FAIL); + exit(EXIT_FAILURE); } if (ZBX_MUTEX_ERROR == zbx_mutex_create_force(&sm_lock, ZBX_MUTEX_SELFMON)) { zbx_error("unable to create mutex for a self-monitoring collector"); - exit(FAIL); + exit(EXIT_FAILURE); } if (-1 == (shm_id = zbx_shmget(shm_key, sz_total))) { zabbix_log(LOG_LEVEL_CRIT, "cannot allocate shared memory for a self-monitoring collector"); - exit(FAIL); + exit(EXIT_FAILURE); } if ((void *)(-1) == (p = shmat(shm_id, NULL, 0))) { zabbix_log(LOG_LEVEL_CRIT, "cannot attach shared memory for a self-monitoring collector: %s", zbx_strerror(errno)); - exit(FAIL); + exit(EXIT_FAILURE); } collector = (zbx_selfmon_collector_t *)p; p += sz; |