Skip to content

Commit 513e433

Browse files
author
Vladimir Kotal
committed
mention lsof/pfiles
1 parent f25ce61 commit 513e433

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

file-api.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@
7575
descriptors share the same system file table slot. If a file position sharing
7676
is needed among multiple processes, that is achieved via the \texttt{fork}
7777
call, and it is explained on page \pageref{FDSHARING}.
78+
\item To see how the file descriptor table looks like for given process,
79+
use \texttt{lsof} (Linux distributions, macOS) or \texttt{pfiles} (Solaris)
80+
programs. They will come handy for debugging file descriptor leaks or
81+
inheritance/redirection issues.
7882
\end{itemize}
7983

8084
%%%%%

0 commit comments

Comments
 (0)