URL: https://github.com/freeipa/freeipa/pull/2104 Author: netoarmando Title: #2104: Replace file.flush() calls with flush_sync() helper Action: opened
PR body: """ Calls to `os.fsync(f.fileno())` need to be accompained by `f.flush()`.
Commit 8bbeedc93fd442cbbb9bb70e5f446011e95211db introduces the helper `ipapython.ipautil.flush_sync()`, which handles all calls in the right order.
However, `flush_sync()` takes as parameter a file object with fileno and name, where name must be a path to the file, this isn't possible in some cases where file descriptors are used.
Issue: https://pagure.io/freeipa/issue/7251
Signed-off-by: Armando Neto abiagion@redhat.com """
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/2104/head:pr2104 git checkout pr2104
URL: https://github.com/freeipa/freeipa/pull/2104 Author: netoarmando Title: #2104: Replace file.flush() calls with flush_sync() helper Action: closed
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/2104/head:pr2104 git checkout pr2104
freeipa-devel@lists.fedorahosted.org