1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Assume F_FULLFSYNC on darwin

This commit is contained in:
Unrud 2022-02-01 19:14:40 +01:00
parent 45ad20a3de
commit c5a917826b

View file

@ -193,7 +193,7 @@ def rename_exchange(src: str, dst: str) -> None:
def fsync(fd: int) -> None:
if sys.platform != "win32" and hasattr(fcntl, "F_FULLFSYNC"):
if sys.platform == "darwin":
fcntl.fcntl(fd, fcntl.F_FULLFSYNC)
else:
os.fsync(fd)