aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-02-02 00:40:36 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-02-02 01:07:23 +0200
commit561e375c73a37934fe77a519762d81edf7a3325c (patch)
treef76b7e57e4d74ccbbbfbf0cd6a09f37adf4dab28 /src/util
parent745a2ace18ce857bc712d7e66c8bad7c082c07e2 (diff)
downloadbitcoin-561e375c73a37934fe77a519762d81edf7a3325c.tar.xz
Make PID file creating errors fatal
Diffstat (limited to 'src/util')
-rw-r--r--src/util/system.cpp10
-rw-r--r--src/util/system.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp
index 06317a3a90..8268456919 100644
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -963,16 +963,6 @@ fs::path GetPidFile()
{
return AbsPathForConfigVal(fs::path(gArgs.GetArg("-pid", BITCOIN_PID_FILENAME)));
}
-
-void CreatePidFile(const fs::path &path, pid_t pid)
-{
- FILE* file = fsbridge::fopen(path, "w");
- if (file)
- {
- fprintf(file, "%d\n", pid);
- fclose(file);
- }
-}
#endif
bool RenameOver(fs::path src, fs::path dest)
diff --git a/src/util/system.h b/src/util/system.h
index 5932e55793..44ba740e4e 100644
--- a/src/util/system.h
+++ b/src/util/system.h
@@ -86,7 +86,6 @@ void ClearDatadirCache();
fs::path GetConfigFile(const std::string& confPath);
#ifndef WIN32
fs::path GetPidFile();
-void CreatePidFile(const fs::path &path, pid_t pid);
#endif
#ifdef WIN32
fs::path GetSpecialFolderPath(int nFolder, bool fCreate = true);