diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-10-10 14:01:50 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-10-11 07:49:39 +0200 |
| commit | 24ec631f42d0ab6fd90c9745051663a6a366a9c1 (patch) | |
| tree | 7edb43f83440c7fe2392efec4584bfad9aa5d16c /man2/open.2 | |
| parent | 550f480fd4cb79da0df7c9e40d278b8c57e0eb30 (diff) | |
| download | man-pages-24ec631f42d0ab6fd90c9745051663a6a366a9c1.tar.gz | |
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>
Diffstat (limited to 'man2/open.2')
| -rw-r--r-- | man2/open.2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man2/open.2 b/man2/open.2 index 6d1a3b0a44..15d92e2508 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -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, |
