Correct a call to fcntl(F_SETFD) to use FD_CLOEXEC' instead of 1'.

This commit is contained in:
Chris Costello 2002-07-03 08:15:55 +00:00
parent 32f9f49908
commit 00c3b17e1e

View File

@ -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