Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: client/utils/file_path.py

Issue 2024313003: Send authorization headers when calling Swarming backend. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/swarming/swarming_bot/config/bot_config.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/utils/file_path.py
diff --git a/client/utils/file_path.py b/client/utils/file_path.py
index 16787f4ded39a8c88a44f1d1b813062c92cc284b..00e4420b94d082c355997a0537a307a1ba994638 100644
--- a/client/utils/file_path.py
+++ b/client/utils/file_path.py
@@ -798,6 +798,8 @@ def atomic_replace(path, body):
try:
with os.fdopen(fd, 'wb') as f:
f.write(body)
+ f.flush()
+ os.fsync(fd)
if sys.platform != 'win32':
os.rename(tmp_name, path)
else:
« no previous file with comments | « appengine/swarming/swarming_bot/config/bot_config.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698