From: Charlie Root Date: Mon, 4 Apr 2016 16:51:30 +0000 (+0300) Subject: fix support of logfile X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=c0745f03eaa1918dd7ff97093618c8708932e2bd;p=trinked.git fix support of logfile --- diff --git a/main.c b/main.c index c5ff3a9..0fb4f1a 100644 --- a/main.c +++ b/main.c @@ -131,7 +131,7 @@ main(int argn, char* argv[]) { logfd; opterr = 0; - while((i=getopt(argn,argv,"dD:p:P:wh")) != EOF) { + while((i=getopt(argn,argv,"dD:l:p:P:wh")) != EOF) { switch(i) { case 'd': daemonize = true; @@ -139,6 +139,9 @@ main(int argn, char* argv[]) { case 'D': dbdir = strdup(optarg); break; + case 'l': + logfile = strdup(optarg); + break; case 'p': pidfile = strdup(optarg); break;