Correct a call to fcntl(F_SETFD) to use FD_CLOEXEC' instead of
1'.
This commit is contained in:
parent
32f9f49908
commit
00c3b17e1e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user