2008-01-21 Matthew Barnes <mbarnes@redhat.com>
* camel.c (camel_shutdown):
Save certificates _before_ calling PR_Cleanup(). Calling fsync()
from camel_certdb_save() after we've called PR_Cleanup() appears to
trigger a race between PR_Cleanup() -- which frees a lock protecting
thread bookmarking data -- and _pt_thread_death_internal() -- which
needs to temporarily lock the thread bookmarking data. (#445309)
svn path=/trunk/; revision=8399
+2008-01-21 Matthew Barnes <mbarnes@redhat.com>
+
+ * camel.c (camel_shutdown):
+ Save certificates _before_ calling PR_Cleanup(). Calling fsync()
+ from camel_certdb_save() after we've called PR_Cleanup() appears to
+ trigger a race between PR_Cleanup() -- which frees a lock protecting
+ thread bookmarking data -- and _pt_thread_death_internal() -- which
+ needs to temporarily lock the thread bookmarking data. (#445309)
+
2008-01-17 Matthew Barnes <mbarnes@redhat.com>
* camel-session.c (camel_session_build_password_prompt):
if (!initialised)
return;
-#if defined (HAVE_NSS) && !defined (G_OS_WIN32)
- /* For some reason we get into trouble on Win32 if we call these.
- * But they shouldn't be necessary as the process is exiting anywy?
- */
- NSS_Shutdown ();
-
- PR_Cleanup ();
-#endif /* HAVE_NSS */
-
certdb = camel_certdb_get_default ();
if (certdb) {
camel_certdb_save (certdb);
camel_object_unref (certdb);
}
+ /* These next calls must come last. */
+
+#if defined (HAVE_NSS)
+ NSS_Shutdown ();
+ PR_Cleanup ();
+#endif /* HAVE_NSS */
+
initialised = FALSE;
}