5 #include "LogSTDOUT.hpp"
6 #include "AuthNone.hpp"
7 #include "Exceptions.hpp"
9 bool g_exitRequested
= false;
10 Log
* g_log
= new LogSTDOUT
;
12 void RequestExit( int signum
)
14 g_exitRequested
= true;
19 ServerPtr
server( Server::Create( AuthPtr( new AuthNone
) ) );
21 while( !g_exitRequested
)
29 signal( SIGINT
, RequestExit
);
35 catch( ServerCrash
& e
)
37 g_log
->Print( "Server crashed" );