curl-library
Re: [PATCH] add some locking for thread-safety to NSS implementation
From: Rob Crittenden <rcritten_at_redhat.com>
Date: Tue, 16 Sep 2008 15:08:07 -0400
Received on 2008-09-16
Date: Tue, 16 Sep 2008 15:08:07 -0400
Rob Crittenden wrote:
> Add some locking around the initialized test to make it thread-safe.
>
> Make the code more aware of whether it has initialized NSS itself or
> whether it was initialized in another library linked with libcurl.
>
> We would always shut down NSS during cleanup whether we initialized or
> or not. Now we will only shut it down if libcurl initialized it.
>
> rob
>
Updated patch that fixes a mis-placed PR_Unlock() which could cause a hang.
rob
- text/x-patch attachment: curl-locking.patch
- application/x-pkcs7-signature attachment: S/MIME Cryptographic Signature