aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-03-08 20:29:58 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-08 20:31:56 +0100
commitd7e537ce942ee79ee336470b495bdff0da097e15 (patch)
tree03918f2243b00ca2f0611daccca99d3852b81e26
parent9599cbb35c3629256f2a0334dc5a376fbbabac4b (diff)
downloadman-pages-d7e537ce942ee79ee336470b495bdff0da097e15.tar.gz
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>
-rw-r--r--man5/proc.511
1 files changed, 11 insertions, 0 deletions
diff --git a/man5/proc.5 b/man5/proc.5
index 71df3fd125..204384184d 100644
--- a/man5/proc.5
+++ b/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