Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On platforms without os.fdatasync (eg. OS-X), use fcntl.F_FULLFSYNC instead #2

Merged
merged 1 commit into from
Mar 12, 2013

Conversation

pjkundert
Copy link
Contributor

Unfortunately, os.fdatasync doesn't exist on OS-X. The fcntl(fd, F_FULLFSYNC) is purported to yield approximately the same results, so provide a fall-back to that if os.fdatasync is found to not exist.

cocagne added a commit that referenced this pull request Mar 12, 2013
On platforms without os.fdatasync (eg. OS-X), use fcntl.F_FULLFSYNC instead
@cocagne cocagne merged commit cb6c505 into cocagne:master Mar 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants