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:
parent
6db1a873d5
commit
265141b332
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue