mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-02 04:16:23 +02:00
result
This commit is contained in:
parent
885dc6603f
commit
2deb4118bc
31 changed files with 783 additions and 212 deletions
9
i2p.cpp
9
i2p.cpp
|
@ -48,8 +48,8 @@
|
|||
#endif
|
||||
|
||||
// Global
|
||||
int running = 1;
|
||||
int isDaemon;
|
||||
volatile int running = 1;
|
||||
volatile int isDaemon;
|
||||
|
||||
#ifndef _WIN32
|
||||
void handle_signal(int sig)
|
||||
|
@ -82,7 +82,7 @@ void handle_signal(int sig)
|
|||
int main( int argc, char* argv[] )
|
||||
{
|
||||
i2p::util::config::OptionParser(argc,argv);
|
||||
isDaemon = i2p::util::config::GetArg("-daemon", 0);
|
||||
volatile int isDaemon = i2p::util::config::GetArg("-daemon", 0);
|
||||
#ifdef _WIN32
|
||||
setlocale(LC_CTYPE, "");
|
||||
SetConsoleCP(1251);
|
||||
|
@ -139,7 +139,8 @@ int main( int argc, char* argv[] )
|
|||
}
|
||||
#endif
|
||||
|
||||
int isLogging = i2p::util::config::GetArg("-log", 0);
|
||||
volatile int isLogging = i2p::util::config::GetArg("-log", 0);
|
||||
|
||||
if (isLogging == 1)
|
||||
{
|
||||
std::string logfile = i2p::util::filesystem::GetDataDir().string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue