From 40bbe387a5fba345e56ab78b127a5acd36563d52 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 27 Dec 2015 17:05:07 +0100 Subject: [PATCH] proc.5: Reaching /proc/sys/fs/file-max limit normally produces an ENFILE error Signed-off-by: Michael Kerrisk --- man5/proc.5 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/man5/proc.5 b/man5/proc.5 index 03f3a8aa6..ad138568c 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -3404,6 +3404,8 @@ For further details, see .I /proc/sys/fs/file-max This file defines a system-wide limit on the number of open files for all processes. +System calls that fail when encountering this limit fail with the error +.BR ENFILE . (See also .BR setrlimit (2), which can be used by a process to set the per-process limit,