execveat.2: Note that employing the close-on-exec flag is usually desirable

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-01-10 21:29:51 +01:00
parent 18650061b6
commit f946944d1f
1 changed files with 8 additions and 0 deletions

View File

@ -198,6 +198,14 @@ in this case,
.IR P
is the value given in
.IR pathname .
For the same reasons described in
.BR fexecve (3),
the natural idiom when using
.BR execveat (2)
is to set the close-on-exec flag on
.IR dirfd .
(But see BUGS.)
.SH BUGS
The
.B ENOENT