diff src/sysdep.c @ 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 1a5509ec45da
children 59945307b86b 549734260e34 f2ebccfa87d4
line wrap: on
line diff
--- 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);
 	}