Re: mutual exclusion Q

2008-12-01 Thread Perrin Harkins
On Sun, Nov 30, 2008 at 9:49 PM, <[EMAIL PROTECTED]> 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 >

mutual exclusion Q

2008-11-30 Thread mackenna
My Q today may be affected by Apache and/or Perl, so it seems appropriate for this mailing list. I've written a mod-perl module that needs mutual exclusion among Apache child processes using the prefork MPM, so I decided to use a file as a semaphore using Perl's 'flock'. 1. The mutual exc