mirror of
https://github.com/anope/anope.git
synced 2026-06-29 17:56:37 +02:00
Windows
This commit is contained in:
+4
-4
@@ -161,7 +161,11 @@ static void write_pidfile()
|
||||
FILE *pidfile = fopen(Config->PIDFilename.c_str(), "w");
|
||||
if (pidfile)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
fprintf(pidfile, "%d\n", static_cast<int>(GetCurrentProcessId()));
|
||||
#else
|
||||
fprintf(pidfile, "%d\n", static_cast<int>(getpid()));
|
||||
#endif
|
||||
fclose(pidfile);
|
||||
atexit(remove_pidfile);
|
||||
}
|
||||
@@ -458,10 +462,6 @@ void Init(int ac, char **av)
|
||||
rand_init();
|
||||
add_entropy_userkeys();
|
||||
|
||||
#ifdef _WIN32
|
||||
OnStartup();
|
||||
#endif
|
||||
|
||||
/* load modules */
|
||||
Log() << "Loading modules...";
|
||||
for (std::list<Anope::string>::iterator it = Config->ModulesAutoLoad.begin(), it_end = Config->ModulesAutoLoad.end(); it != it_end; ++it)
|
||||
|
||||
Reference in New Issue
Block a user