We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e0c0fd commit 745a2acCopy full SHA for 745a2ac
src/init.cpp
@@ -262,9 +262,11 @@ void Shutdown(InitInterfaces& interfaces)
262
263
#ifndef WIN32
264
try {
265
- fs::remove(GetPidFile());
+ if (!fs::remove(GetPidFile())) {
266
+ LogPrintf("%s: Unable to remove PID file: File does not exist\n", __func__);
267
+ }
268
} catch (const fs::filesystem_error& e) {
- LogPrintf("%s: Unable to remove pidfile: %s\n", __func__, e.what());
269
+ LogPrintf("%s: Unable to remove PID file: %s\n", __func__, e.what());
270
}
271
#endif
272
interfaces.chain_clients.clear();
0 commit comments