[prev in list] [next in list] [prev in thread] [next in thread] 

List:       krb5-cvs
Subject:    svn rev #20285: trunk/src/util/support/
From:       lxs () mit ! edu
Date:       2008-03-21 19:04:41
Message-ID: 200803211904.PAA00016 () drugstore ! mit ! edu
[Download RAW message or body]

Commit By: lxs
Log Message: 
ticket: new
subject: Protect CFBundle calls with mutexes

CFBundles are refcounted and the recounts are not threadsafe.
Protect CFBundles used for loading bundled plugins with a 
mutex to prevent crashes when multiple threads are loading
and unloading the same plugin.

As part of this we use thread-safe dlopen/dlsym/dlclose
for the actual loading and unloading and just use CFBundle
to get the path to the actual executable.  This reduces 
the number of places we need to wrap CFBundles with mutexes
and the amount of Mac-specific code in the plugin code.



Changed Files:
U   trunk/src/util/support/plugins.c
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic