Skip to content

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