Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2e8f3c56
Commit
2e8f3c56
authored
Feb 13, 2012
by
Lars Ingebrigtsen
Browse files
Further GnuTLS EAGAIN write fixups
* gnutls.c (emacs_gnutls_write): Set errno appropriately for send_process.
parent
6c0c7cfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/gnutls.c
src/gnutls.c
+13
-1
No files found.
src/ChangeLog
View file @
2e8f3c56
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.
...
...
src/gnutls.c
View file @
2e8f3c56
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment