aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorMiles Bader2004-08-03 00:03:00 +0000
committerMiles Bader2004-08-03 00:03:00 +0000
commitac887bc2843e28a189afa7a1f83ca48157a5e750 (patch)
tree0c70dd197bc1fb64bc2edbfc8a6dcdec9cc8cf1b /src/process.c
parent54685a78a73fcf2f53fd0e8a7a3c7478b8650f1b (diff)
parented5c373cab5483317a8b6fca3d8d4d52432934fc (diff)
downloademacs-ac887bc2843e28a189afa7a1f83ca48157a5e750.tar.gz
emacs-ac887bc2843e28a189afa7a1f83ca48157a5e750.zip
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-27
Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-471 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-478 Update from CVS
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c
index 0b3f6bfbbd2..24ec816a699 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4196,7 +4196,7 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
4196 present (for reading) at stdin, even when none is. This 4196 present (for reading) at stdin, even when none is. This
4197 causes the call to SELECT below to return 1 and 4197 causes the call to SELECT below to return 1 and
4198 status_notify not to be called. As a result output of 4198 status_notify not to be called. As a result output of
4199 subprocesses are incorrectly discarded. 4199 subprocesses are incorrectly discarded.
4200 */ 4200 */
4201 FD_CLR (0, &Atemp); 4201 FD_CLR (0, &Atemp);
4202#endif 4202#endif
@@ -4763,16 +4763,16 @@ read_process_output (proc, channel)
4763 if (DATAGRAM_CHAN_P (channel)) 4763 if (DATAGRAM_CHAN_P (channel))
4764 { 4764 {
4765 int len = datagram_address[channel].len; 4765 int len = datagram_address[channel].len;
4766 nbytes = recvfrom (channel, chars + carryover, readmax - carryover, 4766 nbytes = recvfrom (channel, chars + carryover, readmax,
4767 0, datagram_address[channel].sa, &len); 4767 0, datagram_address[channel].sa, &len);
4768 } 4768 }
4769 else 4769 else
4770#endif 4770#endif
4771 if (proc_buffered_char[channel] < 0) 4771 if (proc_buffered_char[channel] < 0)
4772 { 4772 {
4773 nbytes = emacs_read (channel, chars + carryover, readmax - carryover); 4773 nbytes = emacs_read (channel, chars + carryover, readmax);
4774#ifdef ADAPTIVE_READ_BUFFERING 4774#ifdef ADAPTIVE_READ_BUFFERING
4775 if (!NILP (p->adaptive_read_buffering)) 4775 if (nbytes > 0 && !NILP (p->adaptive_read_buffering))
4776 { 4776 {
4777 int delay = XINT (p->read_output_delay); 4777 int delay = XINT (p->read_output_delay);
4778 if (nbytes < 256) 4778 if (nbytes < 256)
@@ -4784,7 +4784,7 @@ read_process_output (proc, channel)
4784 delay += READ_OUTPUT_DELAY_INCREMENT * 2; 4784 delay += READ_OUTPUT_DELAY_INCREMENT * 2;
4785 } 4785 }
4786 } 4786 }
4787 else if (delay > 0 && (nbytes == readmax - carryover)) 4787 else if (delay > 0 && (nbytes == readmax))
4788 { 4788 {
4789 delay -= READ_OUTPUT_DELAY_INCREMENT; 4789 delay -= READ_OUTPUT_DELAY_INCREMENT;
4790 if (delay == 0) 4790 if (delay == 0)
@@ -4803,7 +4803,7 @@ read_process_output (proc, channel)
4803 { 4803 {
4804 chars[carryover] = proc_buffered_char[channel]; 4804 chars[carryover] = proc_buffered_char[channel];
4805 proc_buffered_char[channel] = -1; 4805 proc_buffered_char[channel] = -1;
4806 nbytes = emacs_read (channel, chars + carryover + 1, readmax - 1 - carryover); 4806 nbytes = emacs_read (channel, chars + carryover + 1, readmax - 1);
4807 if (nbytes < 0) 4807 if (nbytes < 0)
4808 nbytes = 1; 4808 nbytes = 1;
4809 else 4809 else