mirror of https://github.com/mkerrisk/man-pages
proc.5: /proc/PID/fdinfo displays the setting of the close-on-exec flag
Note also the pre-3.1 bug in the display of this info. Reported-by: Patrick Donnelly <batrick@batbytes.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
9599cbb35c
commit
d7e537ce94
11
man5/proc.5
11
man5/proc.5
|
@ -642,6 +642,17 @@ This is a decimal number showing the file offset.
|
|||
This is an octal number that displays the
|
||||
file access mode and file status flags (see
|
||||
.BR open (2)).
|
||||
If the close-on-exec file descriptor flag is set, then
|
||||
.I flags
|
||||
will also include the value
|
||||
.BR O_CLOEXEC .
|
||||
|
||||
Before Linux 3.1,
|
||||
.\" commit 1117f72ea0217ba0cc19f05adbbd8b9a397f5ab7
|
||||
this field incorrectly displayed the setting of
|
||||
.B O_CLOEXEC
|
||||
at the time the file was opened,
|
||||
rather than the current setting of the close-on-exec flag.
|
||||
.TP
|
||||
.I
|
||||
.I mnt_id
|
||||
|
|
Loading…
Reference in New Issue