diff options
| author | Paul Eggert | 2011-05-04 22:31:24 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-04 22:31:24 -0700 |
| commit | 852a74a59b12d505eba86a0aed46bfe8af7b9acf (patch) | |
| tree | c18226075e72f2892a3e2f90e36c4e60f25c6b69 /src/process.c | |
| parent | aab2b9b5abaa4862b2814929c31035e7920f5e21 (diff) | |
| parent | f7ff1b0f0792f1f870778404531e68e77832c4a1 (diff) | |
| download | emacs-852a74a59b12d505eba86a0aed46bfe8af7b9acf.tar.gz emacs-852a74a59b12d505eba86a0aed46bfe8af7b9acf.zip | |
Merge from mainline.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c index 3dc096e7d60..8a94b3e6047 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -32,6 +32,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 32 | #include <unistd.h> | 32 | #include <unistd.h> |
| 33 | #include <fcntl.h> | 33 | #include <fcntl.h> |
| 34 | 34 | ||
| 35 | #include "lisp.h" | ||
| 36 | |||
| 35 | /* Only MS-DOS does not define `subprocesses'. */ | 37 | /* Only MS-DOS does not define `subprocesses'. */ |
| 36 | #ifdef subprocesses | 38 | #ifdef subprocesses |
| 37 | 39 | ||
| @@ -76,7 +78,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 76 | 78 | ||
| 77 | #endif /* subprocesses */ | 79 | #endif /* subprocesses */ |
| 78 | 80 | ||
| 79 | #include "lisp.h" | ||
| 80 | #include "systime.h" | 81 | #include "systime.h" |
| 81 | #include "systty.h" | 82 | #include "systty.h" |
| 82 | 83 | ||
| @@ -4539,7 +4540,7 @@ wait_reading_process_output (int time_limit, int microsecs, int read_kbd, | |||
| 4539 | if (nfds == 0 && | 4540 | if (nfds == 0 && |
| 4540 | wait_proc && wait_proc->gnutls_p /* Check for valid process. */ | 4541 | wait_proc && wait_proc->gnutls_p /* Check for valid process. */ |
| 4541 | /* Do we have pending data? */ | 4542 | /* Do we have pending data? */ |
| 4542 | && gnutls_record_check_pending (wait_proc->gnutls_state) > 0) | 4543 | && emacs_gnutls_record_check_pending (wait_proc->gnutls_state) > 0) |
| 4543 | { | 4544 | { |
| 4544 | nfds = 1; | 4545 | nfds = 1; |
| 4545 | /* Set to Available. */ | 4546 | /* Set to Available. */ |
| @@ -4950,7 +4951,7 @@ read_process_output (Lisp_Object proc, register int channel) | |||
| 4950 | } | 4951 | } |
| 4951 | #ifdef HAVE_GNUTLS | 4952 | #ifdef HAVE_GNUTLS |
| 4952 | if (XPROCESS (proc)->gnutls_p) | 4953 | if (XPROCESS (proc)->gnutls_p) |
| 4953 | nbytes = emacs_gnutls_read (channel, XPROCESS (proc), | 4954 | nbytes = emacs_gnutls_read (XPROCESS (proc), |
| 4954 | chars + carryover + buffered, | 4955 | chars + carryover + buffered, |
| 4955 | readmax - buffered); | 4956 | readmax - buffered); |
| 4956 | else | 4957 | else |
| @@ -5413,9 +5414,8 @@ send_process (volatile Lisp_Object proc, const char *volatile buf, | |||
| 5413 | { | 5414 | { |
| 5414 | #ifdef HAVE_GNUTLS | 5415 | #ifdef HAVE_GNUTLS |
| 5415 | if (XPROCESS (proc)->gnutls_p) | 5416 | if (XPROCESS (proc)->gnutls_p) |
| 5416 | written = emacs_gnutls_write (outfd, | 5417 | written = emacs_gnutls_write (XPROCESS (proc), |
| 5417 | XPROCESS (proc), | 5418 | buf, this); |
| 5418 | buf, this); | ||
| 5419 | else | 5419 | else |
| 5420 | #endif | 5420 | #endif |
| 5421 | written = emacs_write (outfd, buf, this); | 5421 | written = emacs_write (outfd, buf, this); |