MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / logSecurityDatabaseError

Function logSecurityDatabaseError

src/remote/server/os/posix/inet_server.cpp:131–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131static void logSecurityDatabaseError(const char* path, ISC_STATUS* status)
132{
133 // If I/O error happened then rather likely we just miss standard security DB
134 // Since FB3 with its multiple security databases - not too big trouble
135 if (fb_utils::containsErrorCode(status, isc_io_error))
136 return;
137
138 Syslog::Record(Syslog::Error, "Security database error");
139 gds__log_status(path, status);
140 if (isatty(2))
141 {
142 gds__put_error(path);
143 gds__print_status(status);
144 }
145
146 const int SHUTDOWN_TIMEOUT = 5000; // 5 sec
147 fb_shutdown(SHUTDOWN_TIMEOUT, fb_shutrsn_exit_called);
148 exit(STARTUP_ERROR);
149}
150
151static int closePort(const int reason, const int, void* arg)
152{

Callers 1

CLIB_ROUTINE mainFunction · 0.85

Calls 2

containsErrorCodeFunction · 0.85
RecordClass · 0.50

Tested by

no test coverage detected