Save certificates _before_ calling PR_Cleanup(). Calling fsync() from
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 21 Jan 2008 12:53:15 +0000 (12:53 +0000)
committerMatthew Barnes <mbarnes@src.gnome.org>
Mon, 21 Jan 2008 12:53:15 +0000 (12:53 +0000)
commit5562798ac3d8c9e22386ab81b528a19329a29838
tree1c8c5bd2b03a1541100a8ce28cc20c4972fde86d
parent82db9260c9cf49ec047fdb3dde9a7656c1cc00a7
Save certificates _before_ calling PR_Cleanup(). Calling fsync() from

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
camel/ChangeLog
camel/camel.c