mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-12 04:48:51 +00:00
Add new option to asterisk.conf (lockconfdir) to protect conf dir during reloads
(closes issue #16358) Reported by: raarts Patches: lockconfdir.diff uploaded by raarts (license 937) modified by me git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@243551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -90,6 +90,8 @@ enum ast_option_flags {
|
||||
AST_OPT_FLAG_FORCE_BLACK_BACKGROUND = (1 << 27),
|
||||
/*! Hide remote console connect messages on console */
|
||||
AST_OPT_FLAG_HIDE_CONSOLE_CONNECT = (1 << 28),
|
||||
/*! Protect the configuration file path with a lock */
|
||||
AST_OPT_FLAG_LOCK_CONFIG_DIR = (1 << 29),
|
||||
};
|
||||
|
||||
/*! These are the options that set by default when Asterisk starts */
|
||||
@@ -122,6 +124,7 @@ enum ast_option_flags {
|
||||
#define ast_opt_light_background ast_test_flag(&ast_options, AST_OPT_FLAG_LIGHT_BACKGROUND)
|
||||
#define ast_opt_force_black_background ast_test_flag(&ast_options, AST_OPT_FLAG_FORCE_BLACK_BACKGROUND)
|
||||
#define ast_opt_hide_connect ast_test_flag(&ast_options, AST_OPT_FLAG_HIDE_CONSOLE_CONNECT)
|
||||
#define ast_opt_lock_confdir ast_test_flag(&ast_options, AST_OPT_FLAG_LOCK_CONFIG_DIR)
|
||||
|
||||
extern struct ast_flags ast_options;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user