X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FDaemonTools.hh;h=6ea30e9daaa602787188da3b4943431c993b12a1;hb=36dec8105bf99dec12ffa07149f72923a71001e5;hp=a103c8664c47e4be006ddfa8d7c92811d06615f8;hpb=85ab07d100a382467a42e19d741d403a7a96c951;p=senf.git diff --git a/Utils/DaemonTools.hh b/Utils/DaemonTools.hh index a103c86..6ea30e9 100644 --- a/Utils/DaemonTools.hh +++ b/Utils/DaemonTools.hh @@ -26,11 +26,11 @@ \idea Add communication between parent and child process to daemonize() and add things like init_done(), failure() etc which allow the daemon process to tell the frontend of successful - startup or failure. This proabably means moving all the methods into a DaemonTools class (as + startup or failure. This probably means moving all the methods into a DaemonTools class (as statics or via a singleton). This would also allow for automatic pid file creation and removal (remove in global destructor). - \idea Add a DaemonProcess baseclass whith init() and main() abstract members which wraps the + \idea Add a DaemonProcess baseclass with init() and main() abstract members which wraps the startup process. DaeminProcess::run() would fork, call init(), create a pid file and then call main(). Exceptions during init()'s execution would be passed to the parent process. This is based on the above API. @@ -61,7 +61,7 @@ namespace senf { terminal and start a new process group. */ void redirect_stdio(std::string const & path = "/dev/null"); ///< Redirect STDIN, STDOUT and STDERR /**< All standard file-descriptors will be redirected to the - given path defaulting to /dev/null + given path defaulting to /dev/null \param[in] path path to redirect to */ /// @}