diff options
| author | Lars Ingebrigtsen | 2016-02-01 00:27:07 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-01 00:27:07 +0100 |
| commit | 4ff81f8fac1270a829bb2725911bf6b614711257 (patch) | |
| tree | 5c3a640b436037a3d2f6a4e8bb569c01cc9a3599 /src/process.h | |
| parent | 9972329387b7f1e1a9b1c8713a1d5bbdd032de12 (diff) | |
| download | emacs-4ff81f8fac1270a829bb2725911bf6b614711257.tar.gz emacs-4ff81f8fac1270a829bb2725911bf6b614711257.zip | |
Further TLS async work
* gnutls.c (boot_error): New function to either signal an
error or return an error code.
(Fgnutls_boot): Don't signal errors when running asynchronously.
* process.h (pset_status): Move here from process.c to be
able to use from gnutls.c.
* process.c (connect_network_socket): Do the TLS boot here
when running asynchronously.
(wait_reading_process_output): Rework the dns_processes
handling for more safety.
Diffstat (limited to 'src/process.h')
| -rw-r--r-- | src/process.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h index eb34f5f0411..95c64fa73b7 100644 --- a/src/process.h +++ b/src/process.h | |||
| @@ -210,6 +210,12 @@ pset_childp (struct Lisp_Process *p, Lisp_Object val) | |||
| 210 | p->childp = val; | 210 | p->childp = val; |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | INLINE void | ||
| 214 | pset_status (struct Lisp_Process *p, Lisp_Object val) | ||
| 215 | { | ||
| 216 | p->status = val; | ||
| 217 | } | ||
| 218 | |||
| 213 | #ifdef HAVE_GNUTLS | 219 | #ifdef HAVE_GNUTLS |
| 214 | INLINE void | 220 | INLINE void |
| 215 | pset_gnutls_cred_type (struct Lisp_Process *p, Lisp_Object val) | 221 | pset_gnutls_cred_type (struct Lisp_Process *p, Lisp_Object val) |