diff options
author | Jeff Peeler <jpeeler@digium.com> | 2010-01-27 18:29:49 +0000 |
---|---|---|
committer | Jeff Peeler <jpeeler@digium.com> | 2010-01-27 18:29:49 +0000 |
commit | a170cd28e0c2a5635f33fec7cf08f304ca7ef95f (patch) | |
tree | 2f8be97f4da2d33e2bcaa8caddcb6f0037931465 /include | |
parent | 630b8027c36546796a05e27a32c06823e1780ab1 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/options.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/options.h b/include/asterisk/options.h index 065d0c9a1..d3305be66 100644 --- a/include/asterisk/options.h +++ b/include/asterisk/options.h @@ -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; |