| 1171 | } |
| 1172 | |
| 1173 | bool AppInitLockDataDirectory() |
| 1174 | { |
| 1175 | // After daemonization get the data directory lock again and hold on to it until exit |
| 1176 | // This creates a slight window for a race condition to happen, however this condition is harmless: it |
| 1177 | // will at most make us exit without printing a message to console. |
| 1178 | if (!LockDataDirectory(false)) { |
| 1179 | // Detailed error printed inside LockDataDirectory |
| 1180 | return false; |
| 1181 | } |
| 1182 | return true; |
| 1183 | } |
| 1184 | |
| 1185 | /* This function checks that the RPC connection to the parent chain node |
| 1186 | * can be attained, and is returning back reasonable answers. |
no test coverage detected