
1arryb
User
Mar 13, 2009, 9:15 AM
Post #5 of 10
(619 views)
|
Hi jm01, This is a cgi, right? You could have a concurrency problem:
Be aware that your CGI script shares machine resources with other programs, including other invocations of your CGI script. So, for example, if your script needs to append to a file, it's quite possible that in between opening the file for append, and actually appending, some other process might append on it's own. This is a race condition. Program defensively. In this case, seek to the end of file before appending, even though that should have been automatic in the open. http://www.uic.edu/depts/accc/seminars/perliv/security.html#race Has your site picked up on traffic lately? That may be why you are only now seeing the problem. Cheers, Larry
|