mirror of
https://github.com/anope/anope.git
synced 2026-07-03 01:13:13 +02:00
Various fixes for compiling under Windows.
Also updated ms_* modules to use std::vector Memo struct from earlier commit. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1797 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -317,7 +317,11 @@ static void write_pidfile(void)
|
||||
|
||||
pidfile = fopen(PIDFilename, "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);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user