open.2: minor: Fix O_CLOEXEC wording re fcntl() calls

The current wording suggests that only a single fcntl()
operation is needed to set the FD_CLOEXEC flag, when "proper"
usage would be fcntl(F_GETFD) + fcntl(F_SETFD) to get the
flags and then update them.  So change the wording to indicate
that more than one fcntl() operation is required.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-10-10 14:01:50 +02:00
parent 550f480fd4
commit 24ec631f42
1 changed files with 2 additions and 2 deletions

View File

@ -158,10 +158,10 @@ for further details.
.TP
.BR O_CLOEXEC " (Since Linux 2.6.23)"
Enable the close-on-exec flag for the new file descriptor.
Specifying this flag permits a program to avoid an additional
Specifying this flag permits a program to avoid additional
.BR fcntl (2)
.B F_SETFD
operation to set the
operations to set the
.B FD_CLOEXEC
flag.
Additionally,