From c0745f03eaa1918dd7ff97093618c8708932e2bd Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Mon, 4 Apr 2016 19:51:30 +0300 Subject: [PATCH] fix support of logfile --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.46.1