/[emacs]/emacs/src/process.c
ViewVC logotype

Diff of /emacs/src/process.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.402 by jhd, Fri Feb 21 18:13:53 2003 UTC revision 1.403 by dak, Sun Mar 9 22:48:08 2003 UTC
# Line 4463  read_process_output (proc, channel) Line 4463  read_process_output (proc, channel)
4463    if (DATAGRAM_CHAN_P (channel))    if (DATAGRAM_CHAN_P (channel))
4464      {      {
4465        int len = datagram_address[channel].len;        int len = datagram_address[channel].len;
4466        nbytes = recvfrom (channel, chars + carryover, readmax - carryover,        nbytes = recvfrom (channel, chars + carryover, readmax,
4467                           0, datagram_address[channel].sa, &len);                           0, datagram_address[channel].sa, &len);
4468      }      }
4469    else    else
4470  #endif  #endif
4471    if (proc_buffered_char[channel] < 0)    if (proc_buffered_char[channel] < 0)
4472      nbytes = emacs_read (channel, chars + carryover, readmax - carryover);      nbytes = emacs_read (channel, chars + carryover, readmax);
4473    else    else
4474      {      {
4475        chars[carryover] = proc_buffered_char[channel];        chars[carryover] = proc_buffered_char[channel];
4476        proc_buffered_char[channel] = -1;        proc_buffered_char[channel] = -1;
4477        nbytes = emacs_read (channel, chars + carryover + 1,  readmax - 1 - carryover);        nbytes = emacs_read (channel, chars + carryover + 1,  readmax - 1);
4478        if (nbytes < 0)        if (nbytes < 0)
4479          nbytes = 1;          nbytes = 1;
4480        else        else

Legend:
Removed from v.1.402  
changed lines
  Added in v.1.403

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26