in reply to Re^2: File Locking in CGI programs
in thread File Locking in CGI programs

You can check the open() man page on your system, but I believe it's safe if the data fits in one block, which typically means 4K or less on Linux.