1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 17:56:37 +02:00
This commit is contained in:
Adam
2011-11-08 17:29:16 -05:00
parent 97b9055f92
commit b5ff856f47
85 changed files with 1277 additions and 1278 deletions
+4 -4
View File
@@ -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)