Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4318,11 +4318,10 @@ to be ignored.
and will have the same process id as the caller. Errors will be reported as
:exc:`OSError` exceptions.

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
:func:`sys.stdout.flush` or :func:`os.fsync` before calling an
:func:`exec\* <execl>` function.
The current process is replaced immediately. Open file objects are not
flushed, so if there may be data buffered on these open files, you should
flush them using :meth:`~io.IOBase.flush`, e.g. :meth:`sys.stdout.flush`,
before calling an :func:`exec\* <execl>` function.

The "l" and "v" variants of the :func:`exec\* <execl>` functions differ in how
command-line arguments are passed. The "l" variants are perhaps the easiest
Expand Down
Loading