projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added 'polling' option to options.conf.
[lcr.git]
/
options.c
diff --git
a/options.c
b/options.c
index
1cadbe5
..
88f6424
100644
(file)
--- 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) */
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];
};
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,"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;
} else {
UPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option);
goto error;