]> Git Repo - VerusCoin.git/commitdiff
Merge pull request #2855 from Diapolo/guard_CreatePidFile
authorGavin Andresen <[email protected]>
Mon, 5 Aug 2013 08:05:59 +0000 (01:05 -0700)
committerGavin Andresen <[email protected]>
Mon, 5 Aug 2013 08:05:59 +0000 (01:05 -0700)
exclude CreatePidFile() function on WIN32 as it is unused

src/bitcoind.cpp
src/util.cpp
src/util.h

index bc23cf55071009fc06f483d1b02f6fb38abd5a9d..be18f9ae833895c92475da43f66b52f3ce8fd9ed 100644 (file)
@@ -74,7 +74,7 @@ bool AppInit(int argc, char* argv[])
             int ret = CommandLineRPC(argc, argv);
             exit(ret);
         }
-#if !defined(WIN32)
+#ifndef WIN32
         fDaemon = GetBoolArg("-daemon", false);
         if (fDaemon)
         {
index c4212b39845d93e11463e10077b1800073138134..049e55b7d6b8b32bc4b74a3b583073acb7ddb50a 100644 (file)
@@ -1118,6 +1118,7 @@ boost::filesystem::path GetPidFile()
     return pathPidFile;
 }
 
+#ifndef WIN32
 void CreatePidFile(const boost::filesystem::path &path, pid_t pid)
 {
     FILE* file = fopen(path.string().c_str(), "w");
@@ -1127,6 +1128,7 @@ void CreatePidFile(const boost::filesystem::path &path, pid_t pid)
         fclose(file);
     }
 }
+#endif
 
 bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest)
 {
index 9ca73f3311a5fa2b343b19cb27b683378fedc672..9aea56440602de2bed5cdbc3529ec94aabeae28c 100644 (file)
@@ -207,7 +207,9 @@ boost::filesystem::path GetDefaultDataDir();
 const boost::filesystem::path &GetDataDir(bool fNetSpecific = true);
 boost::filesystem::path GetConfigFile();
 boost::filesystem::path GetPidFile();
+#ifndef WIN32
 void CreatePidFile(const boost::filesystem::path &path, pid_t pid);
+#endif
 void ReadConfigFile(std::map<std::string, std::string>& mapSettingsRet, std::map<std::string, std::vector<std::string> >& mapMultiSettingsRet);
 #ifdef WIN32
 boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate = true);
This page took 0.031435 seconds and 4 git commands to generate.