Conversation

Christian Brauner

Edited 10 months ago

Public service announcement. If you stat /proc/$pid/fd then stat->st_size/statx->stx_size will contain the number of open file descriptors for $pid.

> stat --format '%s' /proc/1/fd
167

#linux #kernel

0
0
0