perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrin Harkins" <per...@elem.com>
Subject Re: mutual exclusion Q
Date Mon, 01 Dec 2008 21:01:24 GMT
On Sun, Nov 30, 2008 at 9:49 PM,  <mackenna@animalhead.com> wrote:
> This suggests that the forking operation (with demotion to a lower priority
> user) prevents flock from working properly on the inherited filehandle.  Yet
> my Apache child processes can inherit other open filehandles and tied hashes
> from the original process, and do I/O via them just fine, without having to
> re-open them.

I don't think that's correct.  If you're sharing read/write
filehandles between processes and you haven't had problems, you're
just getting lucky.  You need to open them in each child process.

- Perrin

Mime
View raw message