Skip to content

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

Open
zhangboyang wants to merge 3 commits intopython:mainfrom
zhangboyang:main
Open

gh-133102: Remove unnecessary mention of os.fsync() from os.exec*() docs#133333
zhangboyang wants to merge 3 commits intopython:mainfrom
zhangboyang:main

Conversation

@zhangboyang
Copy link
Copy Markdown

@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
Copy Markdown

python-cla-bot Bot commented May 3, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Comment thread Doc/library/os.rst Outdated
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@zhangboyang zhangboyang requested a review from ZeroIntensity May 26, 2025 19:03
@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 24, 2026
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 stale Stale PR or inactive for long period of time.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants