aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-04-02 10:47:58 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-04-02 10:47:58 +0000
commit54833b53da596625b194c40732f67aa9dd0ece54 (patch)
tree27cbc572fe209c07f761fa1d6deb0bbdfb9fdc10 /rcfile_y.y
parent884266c5f0f1d53c15fa2e9d98132c0749c576ff (diff)
downloadfetchmail-54833b53da596625b194c40732f67aa9dd0ece54.tar.gz
fetchmail-54833b53da596625b194c40732f67aa9dd0ece54.tar.bz2
fetchmail-54833b53da596625b194c40732f67aa9dd0ece54.zip
Add pidfile option, requested by Héctor García.
svn path=/branches/BRANCH_6-3/; revision=4770
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y6
1 files changed, 2 insertions, 4 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 75d57c27..cf820ee4 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -68,7 +68,7 @@ extern char * yytext;
%token INTERFACE MONITOR PLUGIN PLUGOUT
%token IS HERE THERE TO MAP WILDCARD
%token BATCHLIMIT FETCHLIMIT FETCHSIZELIMIT FASTUIDL EXPUNGE PROPERTIES
-%token SET LOGFILE DAEMON SYSLOG IDFILE INVISIBLE POSTMASTER BOUNCEMAIL
+%token SET LOGFILE DAEMON SYSLOG IDFILE PIDFILE INVISIBLE POSTMASTER BOUNCEMAIL
%token SPAMBOUNCE SHOWDOTS
%token <proto> PROTO AUTHTYPE
%token <sval> STRING
@@ -95,6 +95,7 @@ optmap : MAP | /* EMPTY */;
/* future global options should also have the form SET <name> optmap <value> */
statement : SET LOGFILE optmap STRING {run.logfile = prependdir ($4, rcfiledir);}
| SET IDFILE optmap STRING {run.idfile = prependdir ($4, rcfiledir);}
+ | SET PIDFILE optmap STRING {run.pidfile = prependdir ($4, rcfiledir);}
| SET DAEMON optmap NUMBER {run.poll_interval = $4;}
| SET POSTMASTER optmap STRING {run.postmaster = xstrdup($4);}
| SET BOUNCEMAIL {run.bouncemail = TRUE;}
@@ -578,7 +579,4 @@ char *prependdir (const char *file, const char *dir)
return newfile;
}
-/* easier to do this than cope with variations in where the library lives */
-int yywrap(void) {return 1;}
-
/* rcfile_y.y ends here */