mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Tweak note about using os.open to lock files if O_SHLOCK and O_EXLOCK are
present.
This commit is contained in:
parent
ecdad8575e
commit
684364c646
1 changed files with 5 additions and 5 deletions
|
@ -166,9 +166,9 @@ system dependent --- therefore using the \function{flock()} call may be
|
|||
better.
|
||||
|
||||
\begin{seealso}
|
||||
\seemodule{os}{The \function{os.open()} function supports locking flags
|
||||
and is available on a wider variety of platforms than
|
||||
the \function{lockf()} and \function{flock()}
|
||||
functions, providing a more platform-independent file
|
||||
locking facility.}
|
||||
\seemodule{os}{If the locking flags \constant{O_SHLOCK} and
|
||||
\constant{O_EXLOCK} are present in the \module{os} module,
|
||||
the \function{os.open()} function provides a more
|
||||
platform-independent alternative to the \function{lockf()}
|
||||
and \function{flock()} functions.}
|
||||
\end{seealso}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue