diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-09-20 10:56:25 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-09-20 11:03:59 +0200 |
| commit | d6712db35419e36b2c89191eb730a86d95abf4b0 (patch) | |
| tree | 2f251c16c9b9689aaef24f0012378d410c005591 /src/util.h | |
| parent | Merge pull request #4835 (diff) | |
| download | discoin-d6712db35419e36b2c89191eb730a86d95abf4b0.tar.xz discoin-d6712db35419e36b2c89191eb730a86d95abf4b0.zip | |
Also create pid file in non-daemon mode
Always make a pid file, not only when `-daemon` specified.
This is useful for troubleshooting, for attaching debuggers and loggers
and such.
- Write the pid file only after the datadir lock was acquired
- Don't create or remove a pid file on WIN32, and also don't show the option
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index e72c99adc..4b2415278 100644 --- a/src/util.h +++ b/src/util.h @@ -93,8 +93,8 @@ bool TryCreateDirectory(const boost::filesystem::path& p); boost::filesystem::path GetDefaultDataDir(); const boost::filesystem::path &GetDataDir(bool fNetSpecific = true); boost::filesystem::path GetConfigFile(); -boost::filesystem::path GetPidFile(); #ifndef WIN32 +boost::filesystem::path GetPidFile(); 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); |