emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r106224: Revert problematic change to


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r106224: Revert problematic change to wait_reading_process_output.
Date: Fri, 28 Oct 2011 20:12:02 -0400
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 106224
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Fri 2011-10-28 20:12:02 -0400
message:
  Revert problematic change to wait_reading_process_output.
  
  * src/process.c (wait_reading_process_output): Revert 2009-08-30 change.
  Not clear what it was for, and it causes various bugs.  (Bug#9839)
modified:
  src/ChangeLog
  src/process.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-10-28 18:41:09 +0000
+++ b/src/ChangeLog     2011-10-29 00:12:02 +0000
@@ -1,3 +1,8 @@
+2011-10-29  Glenn Morris  <address@hidden>
+
+       * process.c (wait_reading_process_output): Revert 2009-08-30 change.
+       Not clear what it was for, and it causes various bugs.  (Bug#9839)
+
 2011-10-28  Eli Zaretskii  <address@hidden>
 
        * xdisp.c (note_mouse_highlight): Initialize `part', to avoid a

=== modified file 'src/process.c'
--- a/src/process.c     2011-10-27 08:07:28 +0000
+++ b/src/process.c     2011-10-29 00:12:02 +0000
@@ -4856,16 +4856,11 @@
                 It can't hurt.  */
              else if (nread == -1 && errno == EIO)
                {
-                 /* Clear the descriptor now, so we only raise the
-                    signal once.  Don't do this if `process' is only
-                    a pty.  */
-                 if (XPROCESS (proc)->pid != -2)
-                   {
-                     FD_CLR (channel, &input_wait_mask);
-                     FD_CLR (channel, &non_keyboard_wait_mask);
+                 /* Clear the descriptor now, so we only raise the signal 
once.  */
+                 FD_CLR (channel, &input_wait_mask);
+                 FD_CLR (channel, &non_keyboard_wait_mask);
 
-                     kill (getpid (), SIGCHLD);
-                   }
+                 kill (getpid (), SIGCHLD);
                }
 #endif /* HAVE_PTYS */
              /* If we can detect process termination, don't consider the 
process


reply via email to

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