]> git.eshelyaron.com Git - emacs.git/commit
Add some sleeps to gnutls_try_handshake
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 4 Mar 2022 15:27:10 +0000 (16:27 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 4 Mar 2022 15:27:10 +0000 (16:27 +0100)
commitcdbc2f9d274a23bcf6cb03046b1e5b4bdcedafb1
treeaef3f6a300ddbfe0a55364f0dc310e27a391dbdc
parent345c4c6532d3784eed5acbaea8a78ce3aad071e4
Add some sleeps to gnutls_try_handshake

* admin/merge-gnulib (GNULIB_MODULES): Add the nanosleep module.
* m4/gnulib-comp.m4 (gl_EARLY):
* lib/gnulib.mk.in: Automatic update.

* m4/nanosleep.m4:
* lib/nanosleep.c: New module.

* nt/mingw-cfg.site (gl_cv_func_free_preserves_errno):
* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_nanosleep): Omit nanosleep,
since mingw has it.

* src/gnutls.c (gnutls_try_handshake): Add some sleeping to the
busy-wait loop so that we don't use 100% CPU here (bug#32452).
admin/merge-gnulib
lib/gnulib.mk.in
lib/nanosleep.c [new file with mode: 0644]
m4/gnulib-comp.m4
m4/nanosleep.m4 [new file with mode: 0644]
nt/gnulib-cfg.mk
nt/mingw-cfg.site
src/gnutls.c