summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2007-04-03 09:25:57 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2007-04-03 09:25:57 (GMT)
commit2e5e6f45dcb90c6d3bb0ba748f1f23aba685fa44 (patch) (side-by-side diff)
treed6391322faca12f96a0d853b2cce1a2b235898de /src/main.c
parentfab084798a10b7e3ac848101c81049d4a90b7e3a (diff)
downloadmailfromd-2e5e6f45dcb90c6d3bb0ba748f1f23aba685fa44.tar.gz
mailfromd-2e5e6f45dcb90c6d3bb0ba748f1f23aba685fa44.tar.bz2
Bug fixes
git-svn-id: file:///svnroot/mailfromd/trunk@1341 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 438832f..84ba6ed 100644
--- a/src/main.c
+++ b/src/main.c
@@ -63,6 +63,7 @@ char *portspec = DEFAULT_SOCKET; /* Communication socket specification */
int force_remove; /* Remove local communication socket if it already
exists */
int foreground; /* Stay in foreground */
+int single_process_option; /* Run in single process mode. */
unsigned long source_address = INADDR_ANY; /* Source address for TCP
connections */
char *syslog_tag; /* Tag to mark syslog entries with. */
@@ -907,6 +908,7 @@ enum mailfromd_option {
OPTION_POSTMASTER_EMAIL,
OPTION_PREDICT_NEXT,
OPTION_SHOW_DEFAULTS,
+ OPTION_SINGLE_PROCESS,
OPTION_SOURCE_INFO,
OPTION_SYSLOG,
OPTION_TIME_FORMAT,
@@ -988,6 +990,8 @@ static struct argp_option options[] = {
GRP+1 },
{ "foreground", OPTION_FOREGROUND, NULL, 0,
N_("Stay in foreground"), GRP+1 },
+ { "single-process", OPTION_SINGLE_PROCESS, NULL, 0,
+ N_("Run in single-process mode"), GRP+1 },
{ "pidfile", OPTION_PIDFILE, N_("FILE"), 0,
N_("Set pidfile name"), GRP+1 },
{ "user", 'u', N_("NAME"), 0,
@@ -1309,6 +1313,10 @@ parse_opt (int key, char *arg, struct argp_state *state)
need_config = 0;
break;
+ case OPTION_SINGLE_PROCESS:
+ single_process_option = 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.