diff options
| author | Chet Ramey <chet.ramey@case.edu> | 2011-12-03 22:44:33 -0500 |
|---|---|---|
| committer | Chet Ramey <chet.ramey@case.edu> | 2011-12-03 22:44:33 -0500 |
| commit | ac18b312307f11c383fd81a59e78991cdd099b7b (patch) | |
| tree | e662fb8ab869166fa4dc1d6957d9ee6092071d47 /input.c | |
| parent | b317c077a10e51f6529a3267d03bc6b2c4a6f229 (diff) | |
| download | bash-ac18b312307f11c383fd81a59e78991cdd099b7b.tar.gz | |
commit bash-20060126 snapshot
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -41,6 +41,7 @@ #include "input.h" #include "error.h" #include "externs.h" +#include "quit.h" #if !defined (errno) extern int errno; @@ -61,11 +62,14 @@ getc_with_restart (stream) { unsigned char uc; + CHECK_TERMSIG; + /* Try local buffering to reduce the number of read(2) calls. */ if (local_index == local_bufused || local_bufused == 0) { while (1) { + CHECK_TERMSIG; local_bufused = read (fileno (stream), localbuf, sizeof(localbuf)); if (local_bufused > 0) break; @@ -446,6 +450,7 @@ b_fill_buffer (bp) { ssize_t nr; + CHECK_TERMSIG; nr = zread (bp->b_fd, bp->b_buffer, bp->b_size); if (nr <= 0) { @@ -513,6 +518,8 @@ sync_buffered_stream (bfd) int buffered_getchar () { + CHECK_TERMSIG; + #if !defined (DJGPP) return (bufstream_getc (buffers[bash_input.location.buffered_fd])); #else |
