X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FDaemon%2FDaemon.hh;h=2a0ee697b167e16292c6297096669d4517b6f58e;hb=d2459b6c8249291588fd3d0d125ed3d38e003b55;hp=3fb0018a3e45771ff229233071ff6d2e56052a75;hpb=d267cc9325ff49f1ef76aa7ddf6b51ceaafd3026;p=senf.git diff --git a/Utils/Daemon/Daemon.hh b/Utils/Daemon/Daemon.hh index 3fb0018..2a0ee69 100644 --- a/Utils/Daemon/Daemon.hh +++ b/Utils/Daemon/Daemon.hh @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer NETwork research (NET) +// Copyright (C) 2007 +// 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 @@ -34,9 +34,9 @@ namespace senf { - /** \brief Daemon process + /** \brief %Daemon process - senf::Daemon provides simple management for daemon processes. Specifically, the Daemon class + %senf::Daemon provides simple management for daemon processes. Specifically, the %Daemon class implements \li Safe startup. If the startup fails, the foreground process which launches the daemon will terminate with an appropriate error exit code. @@ -156,7 +156,7 @@ namespace senf { int argc(); ///< Access command line parameter count char const ** argv(); ///< Access command line parameters - void exit(unsigned code=0); ///< Terminate daemon with failure + static void exit(unsigned code=0); ///< Terminate daemon with failure ///\} @@ -209,6 +209,7 @@ namespace senf { int stdout_; int stderr_; std::string pidfile_; + bool pidfileCreated_; bool detached_; };