diff options
author | Aleksejs Sestakovs <aleksejs.sestakovs@zabbix.com> | 2021-11-03 14:46:16 +0300 |
---|---|---|
committer | Aleksejs Sestakovs <aleksejs.sestakovs@zabbix.com> | 2021-11-03 14:46:16 +0300 |
commit | 4dda152cdc1074af2170c0577d6f0f29de30d4b1 (patch) | |
tree | 1662e369887cef44730d5107e554f925ce900b08 /include/cfg.h | |
parent | b578ee57afec7bbd6103cbad72cfc89f01ff8bbb (diff) |
...G...... [ZBXNEXT-6936] changed to not exit agentd in case of user parameters reload error
Diffstat (limited to 'include/cfg.h')
-rw-r--r-- | include/cfg.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/cfg.h b/include/cfg.h index 51bce71276c..83ac3e81e13 100644 --- a/include/cfg.h +++ b/include/cfg.h @@ -39,6 +39,9 @@ #define ZBX_CFG_NOT_STRICT 0 #define ZBX_CFG_STRICT 1 +#define ZBX_CFG_EXIT_FAILURE 0 +#define ZBX_CFG_NO_EXIT_FAILURE 1 + #define ZBX_PROXY_HEARTBEAT_FREQUENCY_MAX SEC_PER_HOUR #define ZBX_PROXY_LASTACCESS_UPDATE_FREQUENCY 5 @@ -62,7 +65,7 @@ struct cfg_line typedef int (*cfg_custom_parameter_parser_t)(const char *value, struct cfg_line *cfg); -int parse_cfg_file(const char *cfg_file, struct cfg_line *cfg, int optional, int strict); +int parse_cfg_file(const char *cfg_file, struct cfg_line *cfg, int optional, int strict, int noexit); int check_cfg_feature_int(const char *parameter, int value, const char *feature); int check_cfg_feature_str(const char *parameter, const char *value, const char *feature); |