diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-09-22 10:32:01 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-09-22 10:32:21 +0200 |
| commit | aa340a8f07062600abc84bc0deb47859bd712792 (patch) | |
| tree | 4bd23bf9daf695a5b56d92f0d2d9851123ae47cb /src/util.cpp | |
| parent | qt: Make splash and shutdown window ignore close events (diff) | |
| parent | Also create pid file in non-daemon mode (diff) | |
| download | discoin-aa340a8f07062600abc84bc0deb47859bd712792.tar.xz discoin-aa340a8f07062600abc84bc0deb47859bd712792.zip | |
Merge pull request #4951
d6712db Also create pid file in non-daemon mode (Wladimir J. van der Laan)
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 0ac0f70a7..f387fce8c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -472,6 +472,7 @@ void ReadConfigFile(map<string, string>& mapSettingsRet, ClearDatadirCache(); } +#ifndef WIN32 boost::filesystem::path GetPidFile() { boost::filesystem::path pathPidFile(GetArg("-pid", "bitcoind.pid")); @@ -479,7 +480,6 @@ 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"); |