[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src process.c
From: |
Nick Roberts |
Subject: |
[Emacs-diffs] emacs/src process.c |
Date: |
Sun, 30 Aug 2009 04:54:34 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Nick Roberts <nickrob> 09/08/30 04:54:34
Modified files:
src : process.c
Log message:
(wait_reading_process_output): Keep the descriptor
when pty is used by a non-child process, e.g., in I/O buffer of
GDB this allows inferior to be restarted.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/process.c?cvsroot=emacs&r1=1.594&r2=1.595
Patches:
Index: process.c
===================================================================
RCS file: /sources/emacs/emacs/src/process.c,v
retrieving revision 1.594
retrieving revision 1.595
diff -u -b -r1.594 -r1.595
--- process.c 27 Aug 2009 11:12:54 -0000 1.594
+++ process.c 30 Aug 2009 04:54:34 -0000 1.595
@@ -5150,12 +5150,17 @@
It can't hurt. */
else if (nread == -1 && errno == EIO)
{
- /* Clear the descriptor now, so we only raise the signal
once. */
+ /* Clear the descriptor now, so we only raise the
+ signal once. Don't do this is `process' is only
+ a pty. */
+ if (XPROCESS (proc)->pid != -2)
+ {
FD_CLR (channel, &input_wait_mask);
FD_CLR (channel, &non_keyboard_wait_mask);
kill (getpid (), SIGCHLD);
}
+ }
#endif /* HAVE_PTYS */
/* If we can detect process termination, don't consider the
process
gone just because its pipe is closed. */