unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Can we apply this patch for bug 84 and 425?
@ 2008-10-07 17:37 joakim
  2008-10-07 18:23 ` Chong Yidong
  2008-10-07 20:45 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: joakim @ 2008-10-07 17:37 UTC (permalink / raw)
  To: Emacs Development


These bugs are both about hangs when emacs deals with external processes:
   http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=84
   http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=425

Markus Triska has a patch which reduces my experiences of the hang from
about once a day to not at all so far.

How can we proceed with this patch? 

diff --git a/src/process.c b/src/process.c
index e8d0090..0cf04bc 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4791,6 +4791,10 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
 	      else if (nread == -1 && EWOULDBLOCK == errno)
                 break;
 #endif
+#ifdef EBADF
+	      else if (nread == -1 && EBADF == errno)
+		break;
+#endif
 	    }
 	  if (total_nread > 0 && do_display)
 	    redisplay_preserve_echo_area (10);


   
-- 
Joakim Verona




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-10-08 15:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-07 17:37 Can we apply this patch for bug 84 and 425? joakim
2008-10-07 18:23 ` Chong Yidong
     [not found]   ` <m3fxn8uoza.fsf@verona.se>
2008-10-07 21:05     ` Chong Yidong
2008-10-07 20:45 ` Stefan Monnier
2008-10-07 21:10   ` Chong Yidong
2008-10-08  8:59   ` joakim
2008-10-08 15:55     ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).