apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Time to revisit 1.2.9 flavors
Date Sat, 12 May 2007 04:30:31 GMT
On Fri, 2007-05-11 at 08:14 -0500, William A. Rowe, Jr. wrote:

> Trouble with the submitted patch is that it isn't thread safe, I see all
> sorts of subtle races in this code :(

Yes, I was afraid someone may notice :-(

I'm attaching a patch that features a mutex to make things safer.
Hopefully a bit better. Also, I dropped OS2 and Win32 stuff - no need.

> But maybe I'm mis-reading things - does this only get toggled within the
> child process after fork()?

I think so.

-- 
Bojan

Mime
View raw message