git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@967
270642c3-0616-0410-b53a-bc976706d245
process is implemented by deriving from senf::Daemon and implementing the necessary (virtual)
member functions.
\code
+ #include <senf/Utils/Daemon.hh>
+
class MyDaemon : public senf::Daemon
{
void configure() {
must call detach() as soon as initialization is completed to detach from the foreground
terminal.
\code
+ #include <senf/Utils/Daemon.hh>
+
class MyDaemon : public senf::Daemon
{
// 'configure()' like above. Don't implement 'init()' or 'run()' if you implement 'main()'.
app.run();
}
};
+
+ // Provide main() function
+ SENF_DAEMON_MAIN(MyDaemon);
\endcode
\see