8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 10:43:03 +01:00

Fix crash on IO error during database startup. I'm not sure this is very proper fix, but if it is we need to backport it to 1.5

This commit is contained in:
skidder 2003-08-06 21:13:58 +00:00
parent f4f4cf2073
commit 5e551eb4ac

View File

@ -488,6 +488,12 @@ void SCH_exit(void)
thread = active_thread; thread = active_thread;
// This is to prevent nasty crash if error (for example, IO error)
// happens during attach to database in SS builds. Exception
// handler there calls THREAD_EXIT without preceding THREAD_ENTER
// in this case (during shutdown of CACHE_WRITER or CACHE_READER)
if (!thread) return;
if (thread == thread->thread_next) if (thread == thread->thread_next)
active_thread = NULL; active_thread = NULL;
else { else {