mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +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.
|
better.
|
||||||
|
|
||||||
\begin{seealso}
|
\begin{seealso}
|
||||||
\seemodule{os}{The \function{os.open()} function supports locking flags
|
\seemodule{os}{If the locking flags \constant{O_SHLOCK} and
|
||||||
and is available on a wider variety of platforms than
|
\constant{O_EXLOCK} are present in the \module{os} module,
|
||||||
the \function{lockf()} and \function{flock()}
|
the \function{os.open()} function provides a more
|
||||||
functions, providing a more platform-independent file
|
platform-independent alternative to the \function{lockf()}
|
||||||
locking facility.}
|
and \function{flock()} functions.}
|
||||||
\end{seealso}
|
\end{seealso}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue