diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2016-03-04 12:57:43 +0000 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2016-03-04 12:57:43 +0000 |
commit | 265141b332edfacd03e10a2de9e070077d0b2e82 (patch) | |
tree | 535f0e999c6999b9898156cbfcb5ede8200b41d7 /src/doc.c | |
parent | 6db1a873d5dbf13bf30376b16bcd83ebda269adc (diff) | |
download | emacs-265141b332edfacd03e10a2de9e070077d0b2e82.tar.gz |
Fix Bug#22814
* src/doc.c (get_doc_string): Raise an error in case too many
files are open. (Bug#22814)
Diffstat (limited to 'src/doc.c')
-rw-r--r-- | src/doc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc.c b/src/doc.c index a9273f05809..6e7906578a4 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)) { |