emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can we apply this patch for bug 84 and 425?


From: joakim
Subject: Can we apply this patch for bug 84 and 425?
Date: Tue, 07 Oct 2008 19:37:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]