mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 21:57:43 +03:00
Revert "Assume F_FULLFSYNC on darwin"
This commit is contained in:
parent
8c69bb71aa
commit
7e29d9b5c3
2 changed files with 1 additions and 2 deletions
|
@ -193,7 +193,7 @@ def rename_exchange(src: str, dst: str) -> None:
|
|||
|
||||
|
||||
def fsync(fd: int) -> None:
|
||||
if sys.platform == "darwin":
|
||||
if sys.platform != "win32" and hasattr(fcntl, "F_FULLFSYNC"):
|
||||
fcntl.fcntl(fd, fcntl.F_FULLFSYNC)
|
||||
else:
|
||||
os.fsync(fd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue