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

Skip to content

Documentation of os.exec*() provides confusing information about "flushing file descriptors" #133102

Open
@zhangboyang

Description

@zhangboyang

Documentation

The documentation of os.exec*() says:

The current process is replaced immediately. Open file objects and descriptors are not flushed, so if there may be data buffered on these open files, you should flush them using sys.stdout.flush() or os.fsync() before calling an exec* function.

However, os.fsync() flushs OS buffers to disk, and has nothing to with flushing userspace buffer to OS.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions