mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
Improve PID file removing errors logging
This commit is contained in:
parent
5e0c0fd62f
commit
745a2ace18
1 changed files with 4 additions and 2 deletions
|
@ -262,9 +262,11 @@ void Shutdown(InitInterfaces& interfaces)
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
try {
|
try {
|
||||||
fs::remove(GetPidFile());
|
if (!fs::remove(GetPidFile())) {
|
||||||
|
LogPrintf("%s: Unable to remove PID file: File does not exist\n", __func__);
|
||||||
|
}
|
||||||
} catch (const fs::filesystem_error& e) {
|
} catch (const fs::filesystem_error& e) {
|
||||||
LogPrintf("%s: Unable to remove pidfile: %s\n", __func__, e.what());
|
LogPrintf("%s: Unable to remove PID file: %s\n", __func__, e.what());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
interfaces.chain_clients.clear();
|
interfaces.chain_clients.clear();
|
||||||
|
|
Loading…
Add table
Reference in a new issue