Commit 265141b3 authored by Michael Albinus's avatar Michael Albinus

Fix Bug#22814

* src/doc.c (get_doc_string): Raise an error in case too many
files are open.  (Bug#22814)
parent 6db1a873
......@@ -126,6 +126,9 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition)
fd = emacs_open (name, O_RDONLY, 0);
if (fd < 0)
if ((errno == EMFILE) || (errno == ENFILE))
report_file_error ("Read error on documentation file", file);
if (!NILP (Vpurify_flag))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment