| 1212 | } |
| 1213 | |
| 1214 | bool AppInitLockDataDirectory() |
| 1215 | { |
| 1216 | // After daemonization get the data directory lock again and hold on to it until exit |
| 1217 | // This creates a slight window for a race condition to happen, however this condition is harmless: it |
| 1218 | // will at most make us exit without printing a message to console. |
| 1219 | if (!LockDataDirectory(false)) { |
| 1220 | // Detailed error printed inside LockDataDirectory |
| 1221 | return false; |
| 1222 | } |
| 1223 | return true; |
| 1224 | } |
| 1225 | |
| 1226 | bool AppInitMain() |
| 1227 | { |
no test coverage detected