diff options
Diffstat (limited to 'lib/server/Daemon.cpp')
-rw-r--r-- | lib/server/Daemon.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/server/Daemon.cpp b/lib/server/Daemon.cpp index 37698101..66b317d5 100644 --- a/lib/server/Daemon.cpp +++ b/lib/server/Daemon.cpp @@ -124,6 +124,12 @@ int Daemon::Main(const char *DefaultConfigFile, int argc, const char *argv[]) while((c = getopt(argc, (char * const *)argv, "c:DFqvVt:Tk")) != -1) { + BOX_TRACE("getopt: returned '" << c << "'"); + BOX_TRACE("getopt: optind = " << optind); + BOX_TRACE("getopt: optopt = " << optopt); + BOX_TRACE("getopt: optarg = " << optarg); + BOX_TRACE("getopt: argv[optind] = " << argv[optind]); + switch(c) { case 'c': @@ -212,6 +218,8 @@ int Daemon::Main(const char *DefaultConfigFile, int argc, const char *argv[]) } } + BOX_TRACE("getopt: returned " << (int)c << ", finished."); + if (argc > optind && !haveConfigFile) { mConfigFileName = argv[optind]; optind++; |