changeset 58621:62f194448b68

(emacs_write): Don't use QUIT.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 29 Nov 2004 14:39:09 +0000
parents d03afca07655
children 5415af0b57e1
files src/ChangeLog src/sysdep.c
diffstat 2 files changed, 16 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Nov 29 07:37:45 2004 +0000
+++ b/src/ChangeLog	Mon Nov 29 14:39:09 2004 +0000
@@ -1,10 +1,13 @@
+2004-11-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* sysdep.c (emacs_write): Don't use QUIT.
+
 2004-11-29  Kenichi Handa  <handa@m17n.org>
 
 	* buffer.c (init_buffer): Set current_buffer->directory to a
 	multibyte string made by string_to_multibyte.
 
-	* emacs.c (init_cmdargs): Set unibyte strings in
-	Vcommand_line_args.
+	* emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
 
 2004-11-27  Andreas Schwab  <schwab@suse.de>
 
@@ -13,8 +16,8 @@
 	* s/gnu-linux.h: Enable no-op gcpros on ia64.
 	(GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
 
-	* filelock.c (lock_file_1): Call get_boot_time early.  Increase
-	buffer size.
+	* filelock.c (lock_file_1): Call get_boot_time early.
+	Increase buffer size.
 
 2004-11-27  Eli Zaretskii  <eliz@gnu.org>
 
--- a/src/sysdep.c	Mon Nov 29 07:37:45 2004 +0000
+++ b/src/sysdep.c	Mon Nov 29 14:39:09 2004 +0000
@@ -3285,7 +3285,15 @@
       if (rtnval == -1)
 	{
 	  if (errno == EINTR)
-	    { QUIT; continue; }
+	    {
+#ifdef SYNC_INPUT
+	      /* I originally used `QUIT' but that might causes files to
+		 be truncated if you hit C-g in the middle of it.  --Stef  */
+	      if (interrupt_input_pending)
+		handle_async_input ();
+#endif
+	      continue;
+	    }
 	  else
 	    return (bytes_written ? bytes_written : -1);
 	}