Assume F_FULLFSYNC on darwin
This commit is contained in:
parent
e42b46c722
commit
cd5bc3590f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user