Um, actually, I'm not file locking all the time. I didn't think I'd need
to as each user has their own file, therefore there should be only one
process accessing the file at a time. Also, the toolbars are all hidden in
the browser window this thing opens in to discourage people from hitting
refresh or going back and forward.
That doesn't necessarily stop them from refreshing though, or something
else weird could be happening. Doh! Ok, I'll flock everything and see if
that helps.
Does flock work ok on windows as well as unix as the script has to run on
both? I've heared rumours that it's a bit flaky on some systems.
Kathryn.
At 03:21 PM 2/23/00 -0000, you wrote:
>Hmm 2 processes having contention for the file?
>Make sure you're using file locking.
>This probably is the cause since you said it
>happens for some users. They might be the impatient
>type and hit refresh or something causing another
>CGI instance to be started with contention for
>the same file?
>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!