summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorAndreas Eversberg2010-03-17 10:43:04 +0100
committerAndreas Eversberg2010-03-17 10:43:04 +0100
commit882882e0e2f6c451c4b9a5aa8209aa60352049c9 (patch)
tree61c89cd1dffcbf509440c2174bdd6e6bbab1db8a /options.c
parentFixed output problems of error messages while parsing options.conf / gsm.conf. (diff)
downloadlcr-882882e0e2f6c451c4b9a5aa8209aa60352049c9.tar.gz
lcr-882882e0e2f6c451c4b9a5aa8209aa60352049c9.tar.xz
lcr-882882e0e2f6c451c4b9a5aa8209aa60352049c9.zip
Added 'polling' option to options.conf.
This is usefull to test if select loop causes problems and does not wake when it is required. If lcr seems not to wake up, try using 'polling' to disable select timer and use polling instead.
Diffstat (limited to 'options.c')
-rw-r--r--options.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/options.c b/options.c
index 1cadbe5..88f6424 100644
--- a/options.c
+++ b/options.c
@@ -35,7 +35,8 @@ struct options options = {
0700, /* rights of lcr admin socket */
-1, /* socket user (-1= no change) */
-1, /* socket group (-1= no change) */
- 0 /* enable gsm */
+ 0, /* enable gsm */
+ 1 /* use polling of main loop */
};
char options_error[256];
@@ -235,6 +236,9 @@ int read_options(char *options_error)
} else
if (!strcmp(option,"gsm")) {
options.gsm = 1;
+ } else
+ if (!strcmp(option,"polling")) {
+ options.polling = 1;
} else {
UPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option);
goto error;