kcmp.2: KCMP_FILE: note reasons why FDs may refer to same open file description

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-12-22 12:04:30 +01:00
parent def3177057
commit a579a5ab16
1 changed files with 7 additions and 0 deletions

View File

@ -75,6 +75,13 @@ as file descriptor
.I idx2
in the process
.IR pid2 .
The existence of two file descriptors that refer to the same
open file description can occur as a result of
.BR dup (2)
(and similar)
.BR fork (2),
or passing file descriptors via a domain socket (see
.BR unix (7)).
.TP
.BR KCMP_FILES
Check whether the processes share the same set of open file descriptors.