Chromium Code Reviews| 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: |