aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorStefan Monnier2004-11-29 14:39:09 +0000
committerStefan Monnier2004-11-29 14:39:09 +0000
commit77220eeb1e9a2b20c648de7cc36df00746c85576 (patch)
tree49236aa879307e7cfc7272971734cf0924ce3262 /src/sysdep.c
parenta778cf63fc862fc816c5c6d267d53f44ba7820ea (diff)
downloademacs-77220eeb1e9a2b20c648de7cc36df00746c85576.tar.gz
emacs-77220eeb1e9a2b20c648de7cc36df00746c85576.zip
(emacs_write): Don't use QUIT.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 8ce49cd2e97..6284774d092 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -3285,7 +3285,15 @@ emacs_write (fildes, buf, nbyte)
3285 if (rtnval == -1) 3285 if (rtnval == -1)
3286 { 3286 {
3287 if (errno == EINTR) 3287 if (errno == EINTR)
3288 { QUIT; continue; } 3288 {
3289#ifdef SYNC_INPUT
3290 /* I originally used `QUIT' but that might causes files to
3291 be truncated if you hit C-g in the middle of it. --Stef */
3292 if (interrupt_input_pending)
3293 handle_async_input ();
3294#endif
3295 continue;
3296 }
3289 else 3297 else
3290 return (bytes_written ? bytes_written : -1); 3298 return (bytes_written ? bytes_written : -1);
3291 } 3299 }