Commit 2e8f3c56 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Further GnuTLS EAGAIN write fixups

* gnutls.c (emacs_gnutls_write): Set errno appropriately for
send_process.
parent 6c0c7cfc
2012-02-13 Lars Ingebrigtsen <larsi@gnus.org>
* gnutls.c (emacs_gnutls_write): Set errno appropriately for
send_process.
2012-02-13 Stefan Monnier <monnier@iro.umontreal.ca>
* keymap.c (Fsingle_key_description): Handle char ranges.
......
......@@ -365,8 +365,20 @@ emacs_gnutls_write (struct Lisp_Process *proc, const char *buf, EMACS_INT nbyte)
{
if (rtnval == GNUTLS_E_INTERRUPTED)
continue;
else
else {
/* If we get EAGAIN, then set errno appropriately so that
send_process retries the correct way instead of
erroring out. */
if (rtnval == EAGAIN) {
#ifdef EWOULDBLOCK
errno = EWOULDBLOCK;
#endif
#ifdef EAGAIN
errno = EAGAIN;
#endif
}
break;
}
}
buf += rtnval;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment