Behdad Esfahbod <[EMAIL PROTECTED]> writes: > It happened to me to unintentionally run two commands: > > wget -b -c http://some/file.tar.gz > > and hours later I figured out that the 1GB that I've downloaded > is useless since two wget processes have been downloading the > same data twice and appending to the same file. :( > > So, wget should lock the file for writing, that seems like it > doesn't.
Thanks for the report. I believe this problem is fixed in Wget 1.10, where the second Wget process would write to file.tar.gz.1, using O_EXCL to make sure that two processes are not clobbering the same file.
