X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FDaemon%2FDaemon.cc;h=2cba370fd9c18d9f8607233c9b8d380f2818e81f;hb=62da0fc2f859a98e105b45859c346750a1435ebb;hp=201fe37f8cbeed08dc7455ff37dc700b35a703a1;hpb=d267cc9325ff49f1ef76aa7ddf6b51ceaafd3026;p=senf.git diff --git a/Utils/Daemon/Daemon.cc b/Utils/Daemon/Daemon.cc index 201fe37..2cba370 100644 --- a/Utils/Daemon/Daemon.cc +++ b/Utils/Daemon/Daemon.cc @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer NETwork research (NET) +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -151,7 +151,7 @@ prefix_ void senf::Daemon::detach() namespace { /* Purposely *not* derived from std::exception */ - struct DaemonExitException { + struct DaemonExitException { DaemonExitException(unsigned c) : code(c) {} unsigned code; }; @@ -223,7 +223,8 @@ prefix_ void senf::Daemon::configure() std::string::size_type komma (arg.find(',')); if (komma == std::string::npos) { boost::trim(arg); - consoleLog(arg); + if (arg == std::string("none")) consoleLog(""); + else if (!arg.empty()) consoleLog(arg); } else { std::string arg1 (arg,0,komma); std::string arg2 (arg,komma+1);