diff options
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/fcntl.2 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/man2/fcntl.2 b/man2/fcntl.2 index cbe75e2760..cac8a427cc 100644 --- a/man2/fcntl.2 +++ b/man2/fcntl.2 @@ -144,9 +144,16 @@ Currently, only one such flag is defined: the close-on-exec flag. If the .B FD_CLOEXEC -bit is 0, the file descriptor will remain open across an -.BR execve (2), -otherwise it will be closed. +bit is set, +the file descriptor will automatically be closed during a successful +.BR execve (2). +(If the +.BR execve (2) +fails, the file descriptor is left open.) +If the +.B FD_CLOEXEC +bit is not set, the file descriptor will remain open across an +.BR execve (2). .TP .BR F_GETFD " (\fIvoid\fP)" Return (as the function result) the file descriptor flags; |
