mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-21 20:17:03 +02:00
Fixed issue 506 - plus some quite major refactoring
This commit is contained in:
parent
a19e800b99
commit
24765e6891
8 changed files with 50 additions and 60 deletions
|
@ -412,8 +412,7 @@ CClientApp::closeClient(CClient* client)
|
|||
int
|
||||
CClientApp::foregroundStartup(int argc, char** argv)
|
||||
{
|
||||
// parse command line
|
||||
parseArgs(argc, argv);
|
||||
initialize(argc, argv);
|
||||
|
||||
// never daemonize
|
||||
return mainLoop();
|
||||
|
@ -477,11 +476,6 @@ CClientApp::stopClient()
|
|||
int
|
||||
CClientApp::mainLoop()
|
||||
{
|
||||
// logging to files
|
||||
CFileLogOutputter* fileLog = NULL;
|
||||
|
||||
setupFileLogging();
|
||||
|
||||
// create socket multiplexer. this must happen after daemonization
|
||||
// on unix because threads evaporate across a fork().
|
||||
CSocketMultiplexer multiplexer;
|
||||
|
@ -528,12 +522,7 @@ daemonMainLoopStatic(int argc, const char** argv)
|
|||
int
|
||||
CClientApp::standardStartup(int argc, char** argv)
|
||||
{
|
||||
if (!args().m_daemon) {
|
||||
ARCH->showConsole(false);
|
||||
}
|
||||
|
||||
// parse command line
|
||||
parseArgs(argc, argv);
|
||||
initialize(argc, argv);
|
||||
|
||||
// daemonize if requested
|
||||
if (args().m_daemon) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue