X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Fcollectd.c;h=ce4922d602ec2d5aa4bbd4f81a3e9856b3e995a4;hp=a72ff35f2fc21ec042e809d64967100f35f5a9fd;hb=1737d01e6d25487852d0da2e45088e11115e52a9;hpb=4cc3fe8eb3a74650a01a5464ddb9f8d67e4e17dd diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index a72ff35f..ce4922d6 100644 --- a/src/daemon/collectd.c +++ b/src/daemon/collectd.c @@ -54,7 +54,6 @@ */ char hostname_g[DATA_MAX_NAME_LEN]; cdtime_t interval_g; -int pidfile_from_cli = 0; int timeout_g; #if HAVE_LIBKSTAT kstat_ctl_t *kc; @@ -551,15 +550,14 @@ int main (int argc, char **argv) break; case 'T': test_readall = 1; - global_option_set ("ReadThreads", "-1"); + global_option_set ("ReadThreads", "-1", 1); #if COLLECT_DAEMON daemonize = 0; #endif /* COLLECT_DAEMON */ break; #if COLLECT_DAEMON case 'P': - global_option_set ("PIDFile", optarg); - pidfile_from_cli = 1; + global_option_set ("PIDFile", optarg, 1); break; case 'f': daemonize = 0;