aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-04-18 15:23:00 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-04-18 15:23:00 +0000
commit5d0b40340b5b5ed853d01ea687386eac721e342c (patch)
treea599754f6abf32d8ea7c9ef18c7bc0dc59f0b6b8 /src/main.c
parent71d23052e4bbb16978a2c38e151d2cbf71320e9d (diff)
downloadmailfromd-5d0b40340b5b5ed853d01ea687386eac721e342c.tar.gz
mailfromd-5d0b40340b5b5ed853d01ea687386eac721e342c.tar.bz2
When possible lock BDB databases directly.
For version 2.x fall back to external lock method. Fix handling of optional variables in built-in functions. git-svn-id: file:///svnroot/mailfromd/trunk@1365 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 450129fb..cec508bb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -947,6 +947,7 @@ enum mailfromd_option {
OPTION_SHOW_DEFAULTS,
OPTION_SINGLE_PROCESS,
OPTION_STACK_TRACE,
+ OPTION_STATE_DIRECTORY,
OPTION_SOURCE_INFO,
OPTION_SYSLOG,
OPTION_TIME_FORMAT,
@@ -1011,7 +1012,8 @@ static struct argp_option options[] = {
"available databases"), GRP+1 },
{ "time-format", OPTION_TIME_FORMAT, N_("FMT"), 0,
N_("Output timestamps using given format (default \"%c\")"), GRP+1 },
-
+ { "state-directory", OPTION_STATE_DIRECTORY, N_("DIR"), 0,
+ N_("Set new program state directory"), GRP+1 },
#undef GRP
#define GRP 20
{ NULL, 0, NULL, 0,
@@ -1361,6 +1363,10 @@ parse_opt (int key, char *arg, struct argp_state *state)
set_option("stack-trace", "yes", 1);
break;
+ case OPTION_STATE_DIRECTORY:
+ set_option("state-directory", arg, 1);
+ break;
+
case OPTION_SOURCE_INFO:
set_option("source-info", "yes", 1);
break;

Return to:

Send suggestions and report system problems to the System administrator.