file lock unnecessary?

2007-04-25 Thread Varjü Tamás
Hello everyone! I have written a perl script which opens a file for reading and writing. I tested what happens if the script is run in multiple instances by the webserver. I put a sleep command between seeking writing position in the file and actual writing. I filled the web form in two

Re: file lock unnecessary?

2007-04-25 Thread Greg Jetter
On Wednesday April 25 2007 6:14 am, Varjü Tamás wrote: Hello everyone! I have written a perl script which opens a file for reading and writing. I tested what happens if the script is run in multiple instances by the webserver. I put a sleep command between seeking writing position in the

Re: file lock unnecessary?

2007-04-25 Thread Greg Jetter
On Wednesday April 25 2007 8:42 am, Varjü Tamás wrote: Dear Greg! The reason I did the test, and why I detailed the result is that I could not reproduce any of the nasty things which can happen without locking. I know that everyone suggests to use the lock, but following your argument the