Skip to content

Instantly share code, notes, and snippets.

@jjgod
Created September 26, 2014 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjgod/4f55a00760c3658e08b5 to your computer and use it in GitHub Desktop.
Save jjgod/4f55a00760c3658e08b5 to your computer and use it in GitHub Desktop.
diff --git a/content/browser/download/base_file_posix.cc b/content/browser/download/base_file_posix.cc
index 4cf987c..7dd88a8 100644
--- a/content/browser/download/base_file_posix.cc
+++ b/content/browser/download/base_file_posix.cc
@@ -21,6 +21,7 @@ DownloadInterruptReason BaseFile::MoveFileAndAdjustPermissions(
int write_error = base::WriteFile(new_path, "", 0);
if (write_error < 0)
return LogSystemError("WriteFile", errno);
+ usleep(100);
}
int stat_error = stat(new_path.value().c_str(), &st);
bool stat_succeeded = (stat_error == 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment