summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-06-09 13:49:17 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-09-12 14:53:55 +0200
commit86598183917cd9ff1d21900e0d8cc18dd1e791e1 (patch)
tree0233a744f37b9103d9108146d5c40a4b0d78f22a
parentaa70e14c9e4cfeb70d2dc9cee497c40057dc105e (diff)
Conf: Adding dummy thread-number setting for easier sharing of configuration between v2 and v3
-rw-r--r--sysdep/unix/config.Y5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdep/unix/config.Y b/sysdep/unix/config.Y
index 5c4b5bef..fce64794 100644
--- a/sysdep/unix/config.Y
+++ b/sysdep/unix/config.Y
@@ -19,7 +19,7 @@ CF_DECLS
CF_KEYWORDS(LOG, SYSLOG, ALL, DEBUG, TRACE, INFO, REMOTE, WARNING, ERROR, AUTH, FATAL, BUG, STDERR, SOFT)
CF_KEYWORDS(NAME, CONFIRM, UNDO, CHECK, TIMEOUT, DEBUG, LATENCY, LIMIT, WATCHDOG, WARNING, STATUS)
-CF_KEYWORDS(GRACEFUL, RESTART)
+CF_KEYWORDS(GRACEFUL, RESTART, THREADS)
%type <i> log_mask log_mask_list log_cat cfg_timeout
%type <t> cfg_name
@@ -28,6 +28,9 @@ CF_KEYWORDS(GRACEFUL, RESTART)
CF_GRAMMAR
+/* Dummy threads setting for forward compatibility */
+conf: THREADS expr ';' ;
+
conf: log_config ;
log_begin: { this_log = cfg_allocz(sizeof(struct log_config)); };