Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-133102: Remove unnecessary mention of os.fsync() from os.exec*() docs #133333

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zhangboyang
Copy link

@zhangboyang zhangboyang commented May 3, 2025

Before a process is replaced by os.exec*(), userspace buffers usually need to be flushed. However, it is not necessary to flush kernel buffers to disk using os.fsync(). Flushing userspace buffer to kernel, and flushing kernel buffer to disk, are two different things. In addition, os.fsync() is not applicable to pipes or sockets. This patch removes this confusing information.


📚 Documentation preview 📚: https://cpython-previews--133333.org.readthedocs.build/

Before a process is replaced by os.exec*(), userspace buffers usually
need to be flushed. However, it is not necessary to flush kernel buffers
to disk using os.fsync(). Flushing userspace buffer to kernel, and
flushing kernel buffer to disk, are two different things. In addition,
os.fsync() is not applicable to pipes or sockets. This patch removes
this confusing information.
@python-cla-bot
Copy link

python-cla-bot bot commented May 3, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@zhangboyang zhangboyang requested a review from ZeroIntensity May 26, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants