Fix Bug#22814

* src/doc.c (get_doc_string): Raise an error in case too many
files are open.  (Bug#22814)
This commit is contained in:
Michael Albinus 2016-03-04 12:57:43 +00:00
parent 6db1a873d5
commit 265141b332

View file

@ -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);
#ifndef CANNOT_DUMP
if (!NILP (Vpurify_flag))
{