X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FDaemon%2FDaemon.hh;h=f0d3e6b50c8fc86b0ce2da51210fc54d0c3015c0;hb=532240d72e09e19e57fac9bb55c2560b9c9e5b97;hp=8747182f83cda8be099457463bdae93e780f44d8;hpb=412024ed31a4ab4eaea7a4165a434f8efebee325;p=senf.git diff --git a/Utils/Daemon/Daemon.hh b/Utils/Daemon/Daemon.hh index 8747182..f0d3e6b 100644 --- a/Utils/Daemon/Daemon.hh +++ b/Utils/Daemon/Daemon.hh @@ -37,8 +37,7 @@ namespace senf { /** \brief %Daemon process - %senf::Daemon provides simple management for daemon processes. Specifically, the %Daemon class - implements + The %Daemon class provides simple management for daemon processes. Specifically, it implements \li Safe startup. If the startup fails, the foreground process which launches the daemon will terminate with an appropriate error exit code. \li Straight forward application initialization. The daemon process is forked before @@ -157,7 +156,7 @@ namespace senf { successful startup. */ int argc(); ///< Access command line parameter count - char ** argv(); ///< Access command line parameters + char const ** argv(); ///< Access command line parameters void removeDaemonArgs(); ///< Remove the daemon arguments from argc()/argv() static void exit(unsigned code=0); ///< Terminate daemon with failure @@ -168,7 +167,7 @@ namespace senf { ///\} - int start(int argc, char ** argv); ///< Called from main() to launch daemon. + int start(int argc, char const ** argv); ///< Called from main() to launch daemon. /**< Normally not called directly but from the \ref SENF_DAEMON_MAIN macro. */ @@ -211,7 +210,7 @@ namespace senf { void installSighandlers(); int argc_; - char ** argv_; + char const ** argv_; bool daemonize_; std::string stdoutLog_; @@ -234,7 +233,7 @@ namespace senf { \ingroup process */ # define SENF_DAEMON_MAIN(klass) \ - int main(int argc, char ** argv) \ + int main(int argc, char const ** argv) \ { \ klass instance; \ return instance.start(argc, argv); \