[Boston.pm] flock() on Solaris

2004-06-21 Thread Ian Langworth
Does anyone know of any gotcha's regarding file locking on Solaris? Theoretically, the following should work, as the forked process should block until a lock is available. I've tried this on and off NFS, and this *does* work on Linux. Maybe a platform-specific solution involving fcntl() is in

Re: [Boston.pm] flock() on Solaris

2004-06-21 Thread Ian Langworth
On Mon, 21 Jun 2004 18:49:22 -0400, Andrew Langmead [EMAIL PROTECTED] wrote: The example code that you imply would follow wasn't in your posting. Ooops. See below. ...I was always taught that locks are not kept across forks, that locks are designed to coordinate access among multiple