diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-06-29 22:06:10 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-06-29 22:13:25 +0200 |
| commit | e2340cf7488c5cb19c339b62c360ec3c44c6f113 (patch) | |
| tree | fe9616d59edebab216a84946fc9becd68d5230fc /man7/unix.7 | |
| parent | 1d03bca07f21ef00101f49fdb374cc4c78898ef5 (diff) | |
| download | man-pages-e2340cf7488c5cb19c339b62c360ec3c44c6f113.tar.gz | |
unix.7: Note SCM_RIGHTS interaction with RLIMIT_NOFILE
If the file descriptors received in SCM_RIGHTS would cause
the process to its exceed RLIMIT_NOFILE limit, the excess
FDs are discarded.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/unix.7')
| -rw-r--r-- | man7/unix.7 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/man7/unix.7 b/man7/unix.7 index f22e9c0eda..b4b60308a0 100644 --- a/man7/unix.7 +++ b/man7/unix.7 @@ -452,6 +452,14 @@ then the ancillary data is truncated (or discarded) and the excess file descriptors are automatically closed in the receiving process. .IP +If the number of file descriptors received in the ancillary data would +cause the process to exceed its +.B RLIMIT_NOFILE +resource limit (see +.BR getrlimit (2)), +the excess file descriptors are automatically closed +in the receiving process. +.IP The kernel constant .BR SCM_MAX_FD defines a limit on the number of file descriptors in the array. |
