]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_global_cleanup.3: don't unload the lib with sub threads running
authorDaniel Stenberg <daniel@haxx.se>
Tue, 20 Sep 2016 20:59:53 +0000 (22:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Sep 2016 21:00:52 +0000 (23:00 +0200)
Discussed in #997

Assisted-by: Jay Satiro
docs/libcurl/curl_global_cleanup.3

index 2e3ff036209890eacaba6932dad54d57a7c022e6..04ab0437cf98d4c0e3ab67e2566b4876de1f22c4 100644 (file)
@@ -42,8 +42,14 @@ these other libraries.
 
 See the description in \fIlibcurl(3)\fP of global environment requirements for
 details of how to use this function.
-
+.SH CAUTION
+\fIcurl_global_cleanup(3)\fP does not block waiting for any libcurl-created
+threads to terminate (such as threads used for name resolving). If a module
+containing libcurl is dynamically unloaded while libcurl-created threads are
+still running then your program may crash or other corruption may occur. We
+recommend you do not run libcurl from any module that may be unloaded
+dynamically. This behavior may be addressed in the future.
 .SH "SEE ALSO"
 .BR curl_global_init "(3), "
 .BR libcurl "(3), "
-
+.BR libcurl-thread "(3), "