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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon May 25 06:46:21 CEST 2020




Remi Denis-Courmont commented on a discussion: https://gitlab.com/gnutls/gnutls/-/issues/985#note_348103783

`fork()` is very limited in a multi-thread process. But that is a red herring:
The problem is not `fork()` here. The problem comes with `exec()` family functions, which leak file descriptors. If you call `exec()` directly, the problem exists all the same - it's just far more likely that `fork()` would occur first.

And if you don't like the idea of calling `fork()` then `exec()` in a multi-thread process, you can imagine using a function from the `posix_spawn()` instead: same causes, same problem.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/985#note_348103783
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/20200525/aca0a560/attachment-0001.html>


More information about the Gnutls-devel mailing list