emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 265141b: Fix Bug#22814


From: Michael Albinus
Subject: [Emacs-diffs] emacs-25 265141b: Fix Bug#22814
Date: Fri, 04 Mar 2016 12:57:55 +0000

branch: emacs-25
commit 265141b332edfacd03e10a2de9e070077d0b2e82
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Fix Bug#22814
    
    * src/doc.c (get_doc_string): Raise an error in case too many
    files are open.  (Bug#22814)
---
 src/doc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/doc.c b/src/doc.c
index a9273f0..6e79065 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -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))
        {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]