[gnutls-devel] GnuTLS | GnuTLS leaks file descriptors in child processes (#985)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sat May 9 19:22:14 CEST 2020




Remi Denis-Courmont commented:


The problem is another thread doing something unrelated to GnuTLS. GnuTLS leaks its file descriptor to forked children of other threads. The access rules on `gnutls_session_t` are irrelevant here.

The point really is that libraries running in potentially multithread programs must set close-on-exec atomically regardless of their own internal threading rules.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/985#note_339474317
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200509/61c08ab2/attachment.html>


More information about the Gnutls-devel mailing list