This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients cebtenzzre, gmelikov, gregory.p.smith, ronaldoussoren, serhiy.storchaka
Date 2022-03-20.01:17:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647739074.96.0.830453133859.issue39640@roundup.psfhosted.org>
In-reply-to
Content
The os module provides a pretty low level simple shim over platform APIs. It is better for logic like this to live in a higher level application library rather than make big assumptions on the part of the user.

```
try:
    os.fdatasync(fd)
except Exception as err:
    logging.debug("fdatasync(fd) failed %s, falling back to fsync(fd)", err)
    os.fsync(fd)
```
History
Date User Action Args
2022-03-20 01:17:55gregory.p.smithsetrecipients: + gregory.p.smith, ronaldoussoren, serhiy.storchaka, gmelikov, cebtenzzre
2022-03-20 01:17:54gregory.p.smithsetmessageid: <1647739074.96.0.830453133859.issue39640@roundup.psfhosted.org>
2022-03-20 01:17:54gregory.p.smithlinkissue39640 messages
2022-03-20 01:17:54gregory.p.smithcreate