aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2004-11-25 20:01:18 +0000
committerStefan Monnier2004-11-25 20:01:18 +0000
commit495bf63050e24ad68826f370bfa91ed8f26ccd89 (patch)
treedd0283d5d7ef4dd2b9c54a266f6e6ee75273ce32 /src
parentcab27d048b313265bb98c613cf27385ba6c2d181 (diff)
downloademacs-495bf63050e24ad68826f370bfa91ed8f26ccd89.tar.gz
emacs-495bf63050e24ad68826f370bfa91ed8f26ccd89.zip
(readchar): Check QUIT when `getc' is interrupted.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lread.c b/src/lread.c
index 47512fd3197..08342618766 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1,6 +1,6 @@
1/* Lisp parsing and input streams. 1/* Lisp parsing and input streams.
2 Copyright (C) 1985,86,87,88,89,93,94,95,97,98,99,2000,01,03,2004 2 Copyright (C) 1985, 1986, 1987, 1988, 1989, 1993, 1994, 1995, 1997, 1998,
3 Free Software Foundation, Inc. 3 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -322,6 +322,7 @@ readchar (readcharfun)
322 /* Interrupted reads have been observed while reading over the network */ 322 /* Interrupted reads have been observed while reading over the network */
323 while (c == EOF && ferror (instream) && errno == EINTR) 323 while (c == EOF && ferror (instream) && errno == EINTR)
324 { 324 {
325 QUIT;
325 clearerr (instream); 326 clearerr (instream);
326 c = getc (instream); 327 c = getc (instream);
327 } 328 }