summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/close.2
diff options
context:
space:
mode:
authorchris <chris@FreeBSD.org>2002-07-03 08:15:55 +0000
committerchris <chris@FreeBSD.org>2002-07-03 08:15:55 +0000
commitb9183e530c000dc670273b3ea391d7207fc32bfc (patch)
treef7f915c6045af4154373cacb20e25a8c57b133df /lib/libc/sys/close.2
parent306b98b34d166c480d4147a720be7938b2c8c984 (diff)
downloadFreeBSD-src-b9183e530c000dc670273b3ea391d7207fc32bfc.zip
FreeBSD-src-b9183e530c000dc670273b3ea391d7207fc32bfc.tar.gz
Correct a call to fcntl(F_SETFD) to use `FD_CLOEXEC' instead of `1'.
Diffstat (limited to 'lib/libc/sys/close.2')
-rw-r--r--lib/libc/sys/close.22
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sys/close.2 b/lib/libc/sys/close.2
index 6a07191..409d9e2 100644
--- a/lib/libc/sys/close.2
+++ b/lib/libc/sys/close.2
@@ -94,7 +94,7 @@ is attempted, but if some of these descriptors will still
be needed if the execve fails, it is necessary to arrange for them
to be closed if the execve succeeds.
For this reason, the call
-.Dq Li fcntl(d, F_SETFD, 1)
+.Dq Li fcntl(d, F_SETFD, FD_CLOEXEC)
is provided,
which arranges that a descriptor will be closed after a successful
execve; the call
OpenPOWER on IntegriCloud